/srv/irclogs.ubuntu.com/2014/06/11/#ubuntu-quality.txt

=== chihchun is now known as chihchun_afk
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== rbasak_ is now known as rbasak
=== _salem is now known as salem_
=== salem_ is now known as _salem
=== lderan_ is now known as lderan
=== pitti_ is now known as pitti
pittifginther: hey Francis, how are you?14:04
pittifginther: so on the phone I dpkg-deb -x'ed ubuntu-ui-toolkit-autopilot and set PYTHONPATH accordingly, to run autopilot tests14:05
fgintherpitti, I think I'm well.14:05
pittiPYTHONPATH=ubuntu-calculator-app/tests/autopilot/:ap/usr/lib/python3/dist-packages/ autopilot3 run -v ubuntu_calculator_app14:05
pittibut I get tons of errors like "Introspect error on :1.269:/com/canonical/Autopilot/Introspection: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient, 0 matched rules; type="method_call", sender=":1.271" (uid=32011 pid=4685 comm="/usr/bin/python3 /usr/bin/autopilot3 run -v ubuntu")14:06
pittiinterface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply="0" destination=":1.269" (uid=32011 pid=4637 comm="/usr/lib/i386-linux-gnu/qt5/bin/qmlscene ubuntu-ca")"14:06
pittifginther: i. e. some apparmor limitation; do you happen to know anything about that?14:06
balloonspitti, you need to add the click.rules for autopilot14:06
pittihey balloons14:06
balloonshey pitti :-)14:06
balloonsaa-clickhook -f --include=/usr/share/autopilot-touch/apparmor/click.rules14:06
pittiballoons: how do I do that?14:06
balloonsthere is a script that does the same thing; phablet-config autopilot --dbus-probe enable14:07
balloonsshould only need to include those once per device14:07
fgintherballoons, thanks for that. I was trying to find where that 'dbug-probe' was done14:07
pittiballoons: aah, thanks14:07
balloonspitti, timing is excellent as I was wondering how things where going with autopkg14:07
pittiballoons: so today I learned about the intricacies of ubuntu-app-launch, how to run apps and tests on the phone from the command line, and how to use the emulator14:08
pittiballoons: so indeed nearly *everything* is highly ubuntu specific about that :)14:09
balloonsmmm.. yes that's true14:09
pittiso generic .click support would require some work in adt-run, but I wondered if that would actually make sense14:10
pittias we mostly (only?) have graphical apps with autopilot so far14:10
pittibut well, so far I still have rather lots of trouble actually running our AP tests on the device (or the emulator)14:11
pittiit's effing slow and buggy, I suppose I'm still missing some bits14:11
pittiballoons: so, I'm still in the "learning" phase, I'm afraid14:12
pitti_usr_share_android_emulator_out_host_linux-x86_bin_emulator-x86.1000.crash14:13
pittiand I suppose crashing the emulator doesn't help much either :)14:13
balloonspitti, still having trouble running tests eh?14:13
balloonsI've not messed all that much with the emulator.. I've only played with it; not tried to do serious runs with it. I did that a little with the armhf one, but not the x86 one14:14
pittithe armhf one still didn't boot after 15 mins, so I retried with the x86 one14:14
=== _salem is now known as salem_
pittithat boots, and got into running the tests (although they hang a lot), and then it crashed the emulator14:15
balloonspitti, yea.. it takes a while.. no reason to use it now that we have x8614:15
* pitti tries again on mako with the above apparmor click thing14:15
pittiballoons: is that a per-boot thing, or will the effect stay around?14:16
balloonspitti, should just need to do it once. Unless you reflash, shouldn't need to re-apply it14:17
balloonsor unless you change the rules ;-)14:17
pittiah, thanks14:17
=== chihchun_afk is now known as chihchun
balloonsmight be useful to try and sync up again.. UOS has me multitasking today and tomorrow still14:22
pittiballoons: ok, better; 33 tests, 8 failures, 25 successes14:23
pittitesttools.matchers._impl.MismatchError: After 10.0 seconds test failed: '1.000000001' != '1,000000001'14:23
pittilocales, people, locales!14:23
balloonspitti, so you are running what tests and on your device right?14:23
pittiballoons: right, calculator's14:23
balloonsohh calculator tests :-)14:23
balloonsnice.. yea, that's a locale bug.. file it against calc if you would.. we should fix that14:24
pittiballoons: right, so starting from a virgin device I copied the source tree, downloaded and unpacked the deb of ubuntu-ui-toolkit-autopilot, and ran the tests from the source tree against the installed click14:24
pittiballoons: I think that's pretty much the scenario that we want14:25
balloonspitti, sounds sane enough14:25
balloonsyou would push depends too, but we're staying simple for now14:25
balloonswell the toolkit indeed is a depends :-)14:26
pittiright14:28
=== chihchun is now known as chihchun_afk
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== roadmr is now known as roadmr_afk
alesageballoons, in your experience are there test plans which require the tester to grep files, etc.?19:34
balloonsalesage, mm.. the only example I can think of was verifying configs / status of things after installation19:35
elfythere are in manual tests19:36
elfyat least one that I can think of offhand19:36
alesageelfy, what's that example? also thx balloons19:36
elfyupgrade tests "grep Prompt= /etc/update-manager/release-upgrades"19:37
alesageelfy thanks for that19:38
elfywelcome :)19:38
elfykeeper of manual testcases apparently lol19:38
alesageelfy, now I know who to ask ;)19:38
elfyforestpiskie is the best one :D19:39
balloonselfy, ;p19:47
elfybit unfair perhaps - not many will know who forestpiskie is :D19:48
elfyat least not without years old knowledge or a whois19:48
=== roadmr_afk is now known as roadmr
=== salem_ is now known as _salem
phillwballoons: is / are there any good sessions for QA from today?22:28
elopioping balloons: are you still here? re: temporary home.23:38

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