/srv/irclogs.ubuntu.com/2015/07/01/#ubuntu-autopilot.txt

cwayne_thomi, hiya, is there a way to specify which dir autopilot run looks in for tests? or is it always just cwd?02:03
veeberscwayne_: you can pass autopilot either a python module (that's local or exists in PYTHONPATH) or give it a path itself02:04
veebersAs long as the path is importable02:05
cwayne_veebers, so just 'autopilot3 run /path/to/my/tests' as long as tests/ has an __init___.py?02:05
veeberscwayne_: should work, just double checking now as I now recall there was a catch of some sort :-)02:06
cwayne_hm, didn't seem to work :/02:07
veeberscwayne_: hmm, I may have lied to you02:07
cwayne_:(02:08
veeberscwayne_: yeah sorry doesn't work for me, I have miss-remembered how that works :-\02:08
cwayne_yeah, it tries to load it from 1 dir below for some reason02:09
cwayne_so i guess i'd have to hack together a script to cd to the right dir first..02:09
cwayne_seems like a good feature request though :)02:10
veeberscwayne_: sorry connection issues. Can I ask what you're attempting there should be a way to do it02:14
cwayne_veebers, calling autopilot run from checkbox-touch02:16
veeberscwayne_: this works for me (uses the trunk copy not dist): PYTHONPATH=~/code/touch-apps/camera-app/trunk/tests/autopilot python3 -m autopilot.run list camera_app02:19
veeberswhere tests/autopilot/ contains a dir 'camera_app' that is importable (with __init__.py)02:20
cwayne_veebers, problem is i kinda have to do some hackery already with pythonpath, since checkbox-touch is a click package02:21
veeberscwayne_: ah right. Man, I could have sworn that we had made it so you could just give autopilot a path to use.02:22
cwayne_it seems like it should be that way i'd think02:23
veeberscwayne_: yeah totally a bug. Well I can see where it goes wrong, not sure of a fix yet but I'll file a but anyway02:43
cwayne_veebers, thanks!02:43
veeberscwayne_: can you give us an idea of priority so that we can put that card on our backlog?02:44
cwayne_veebers, probably lowish, I think I can just cd to a different dir in a bash script for now02:47
veeberscwayne_: ack thanks. Bug filed will put it on our backlog as I imagine you're not the only one that would like to run from a path (https://bugs.launchpad.net/autopilot/+bug/1470307)02:48
ubot5Launchpad bug 1470307 in Autopilot "When given a path autopilot filters out tests as the path doesn't match the test id" [Undecided,New]02:48
cwayne_veebers, thanks man02:55
=== MacSlow is now known as MacSlow|lunch
=== MacSlow|lunch is now known as MacSlow
=== alex-abreu is now known as alex-abreu|off
=== Noskcaj_ is now known as Noskcaj

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!