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 |
---|---|---|
veebers | cwayne_: you can pass autopilot either a python module (that's local or exists in PYTHONPATH) or give it a path itself | 02:04 |
veebers | As long as the path is importable | 02:05 |
cwayne_ | veebers, so just 'autopilot3 run /path/to/my/tests' as long as tests/ has an __init___.py? | 02:05 |
veebers | cwayne_: 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 |
veebers | cwayne_: hmm, I may have lied to you | 02:07 |
cwayne_ | :( | 02:08 |
veebers | cwayne_: 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 reason | 02: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 |
veebers | cwayne_: sorry connection issues. Can I ask what you're attempting there should be a way to do it | 02:14 |
cwayne_ | veebers, calling autopilot run from checkbox-touch | 02:16 |
veebers | cwayne_: 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_app | 02:19 |
veebers | where 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 package | 02:21 |
veebers | cwayne_: 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 think | 02:23 |
veebers | cwayne_: yeah totally a bug. Well I can see where it goes wrong, not sure of a fix yet but I'll file a but anyway | 02:43 |
cwayne_ | veebers, thanks! | 02:43 |
veebers | cwayne_: 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 now | 02:47 |
veebers | cwayne_: 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 |
ubot5 | Launchpad 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 man | 02: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!