[00:00] but yea, don't think that autopkgtest would be the thing here [00:01] balloons: any reason you can think of that a testcase couldn't be - make this bash file and run it? these apps should open in this order? [00:01] elfy, totally doable, but that's the realm of semi-automated [00:02] yea ... but we don't have a semi-automated test set-up that I know of :) [00:02] i see no reason it can't be completely automated [00:02] no user input required [00:02] you think? [00:02] so that could be autopilot? [00:03] hi AlbertoSN_ :) [00:03] Hi! [00:03] elfy, when I said you could write it in bash I didn't mean it couldn't be automated [00:03] balloons: probably not - but you forgot my well known antipathy to code :D [00:03] heh [00:04] balloons: so I am willing to learn - what, where and how for something like this? [00:04] Holah [00:04] oh hai [00:05] Hahaha [00:05] autopilot allows you to introspect specific apps, but you don't need to do that here with what you've described I don't think [00:06] ok [00:06] how to learn? Well write it in bash all with basic linux commands [00:06] yea done that almost :) [00:06] launch the app, check the process tree to see it launched, kill it and move on [00:06] oic [00:07] elfy: if you need bash help, let me know [00:07] wxl: at the moment I think we're looking at the same thing from different ends of the stick :) [00:08] balloons, quick adt question: I need to run on the device as root, using the 'Restriction' field just results in "SKIP test: needs root", do you know how to supply? [00:08] balloons: I don't want to open an app and check it runs foo [00:08] I want to check default for bar IS foo [00:08] alesage, wow, that's interesting and wild.. by default you do not run as root for various reasons [00:09] http://pastebin.com/EjXpVvSe [00:09] balloons, understandable--this is for LRT, need to wipe crashes, e.g. [00:09] that might be a pitti question as even running adt itself won't run as root. You can certainly hand-tweak the script I guess, but again I think there would be unintended consequences [00:09] balloons, ok good answer thanks [00:09] balloons: ^^ basically does it , makes a file then opens said file with xdg-open [00:10] alesage, I know originally they did run as root and it borked some things.. you never know, it might all just work [00:10] balloons, know how to supply root via adt-run? (again I'm already using the Restriction: needs-root) [00:10] wxl: that ^^ - what I'd like to do is close them as well :) [00:10] balloons, else I'll ask pitti and report [00:11] alesage, let me try something [00:12] * elfy really dislikes coding .. [00:12] -s is an option for lxc, but not for adb ssh [00:12] you want to close them all at the end or one at a time elfy? [00:12] I see, I'm learning, cool [00:13] alesage, there is something useful in there.. you can specify the ssh user login [00:13] wxl: in the order they open would be best perhaps after x secs open so you can see they've opened [00:13] so, passing -l or --login of root perhaps :-) [00:13] alesage, ^^ [00:13] balloons ok intriguing [00:13] wxl but it really is just a basic test to make sure that foo opens in bar [00:14] alesage, play with /usr/share/autopkgtest/ssh-setup/adb [00:14] elfy: yeah well it's kind of difficult to find the process idea in a general way [00:14] wxl: bug 1382977 was why I'm looking at it [00:14] bug 1382977 in thunar (Ubuntu Utopic) "[SRU] Thunar open default not respecting mimetype" [Undecided,Fix committed] https://launchpad.net/bugs/1382977 [00:14] elfy: e.g. killall xdg-open isn't goingf to work [00:14] balloons ok thanks [00:14] 66 :-) [00:14] wxl - then people just have to manually close I guess [00:15] oh wait elfy [00:15] they're all likely to be error'd apps [00:15] you can see if $! gives you the right pid [00:15] e.g. run xdg-open file & [00:15] then run $! [00:15] uh [00:15] no [00:15] echo $! [00:15] evince WILL open foo.pdf but stops as it is an empty file [00:16] then you can use top or whatever to see if it gives you the right pid [00:16] I JUST want to check that the right app opens [00:16] wxl well at that point you can just press X in the corner :) [00:16] if it reliably does, then you can just use "sleep x; kill $!" after every xdg-open [00:16] elfy: no i'm talking about testing before writing it :รพ [00:17] :) [00:17] see why balloons runs a mile when I ask a question lol [00:17] ah it forks poop [00:17] * elfy is running out of people who'll say "Yea" after I've said got a minute :D [00:18] hahahha [00:18] see how quiet balloons is :p [00:18] yeah well i'm not sure what to tell you [00:18] lol [00:18] ha ha ha [00:18] it's dinner time here [00:18] love you all :D [00:19] past actually [00:19] elfy, I think writing the script would be easier, then walking through it [00:19] balloons: go eat - important task :D [00:19] wxl sounds like he gets it as well :-) [00:19] I imagine anyone with a little scripting skills could whip something up.. improvements would be many of course [00:20] balloons: of course, but I'm code atheist though willing to make it to agnostic [00:20] well i do a fair amount of scripting but i normally don't have a want of saving PIDs [00:20] and that's what you need to do is get the PID of the forked process [00:20] i'm sure there's a way to do ti with C [00:20] balloons: yea - but I would kinda like to just force my way through on this one :) [00:20] * wxl watches elfy run screaming out of the building [00:20] k, I'm disconnecting.. my nick will turn grey.. and then.. then there is only darkness until the morning light [00:20] heh [00:21] * balloons floats away [00:21] balloons: cya tomorrow then :) [00:21] wxl: what I am trying to achieve here is probably closer to what *you~* would like [00:22] being as how we don't don't have paid people lol [00:22] hahahahah [00:22] maybe there's a form somewhere on the ubuntu site where we could request paid people [00:22] * wxl jokes, clearly [00:23] yea [00:23] I made that form - sent it in :D [00:23] hahahah [00:23] maybe we should write a bug report about that [00:23] * wxl is sad to find that bug 1 is closed [00:23] bug 1 in Ubuntu Malaysia LoCo Team "Microsoft has a majority market share" [Critical,In progress] https://launchpad.net/bugs/1 [00:24] oh i HEARD it was closed [00:25] it got closed [00:25] then opened [00:26] then closed [00:26] ... [00:26] * wxl facepalms [00:27] well you know ;) [00:27] was a good bug then - now ... [00:28] * elfy isn't good with zealots whatever the colour - much too old for that :) [00:28] i kind of liked the notion of it all [00:28] it was humorous [00:28] true but humorous [00:28] but then people got a little to ridiculous abou tit [00:29] which is sort of how i feel about rms [00:29] i don't have time for all that complaining and pedantry :) [00:29] yep [00:30] same world we live in then ;) [00:30] hehehe yep [00:30] * wxl uses Google Chrome [00:31] NOT chromium [00:31] yes, if i were captain open source, i woudln't but, hey, it works. [00:32] well [00:33] I like neither so don't use them :) [00:33] yeah well that's your problem XD [00:34] ha [00:34] no [00:34] it's not [00:34] we don't seed either lol [00:34] well neither do we honestly [00:35] https://twitter.com/wxl/status/528574961292541952 [00:37] yea [00:38] not doing that one lol [00:38] hehe [00:39] wxl: so do you think that the simplest method of doing that test ^^ would be to do it in a live session, no worries about someone's oddly named data [00:40] yeah i think that makes sense [00:40] and then just physically closing the apps after you've checked the right apps have opened [00:40] yeah i think that would be best [00:40] or get someone to write proper python code for it :) [00:42] LMAO [00:43] I just did the 'does this work' bit :D [00:44] wxl you do know I hope that before PHP there was "small green gents" [00:45] http://www.planetgong.co.uk/cgi-bin/gasmain.cgi?dept=cosmo&title=Code%20Glossary&page=code_glossary&menu=menu [00:46] i think you're officially scaring me now elfy [00:46] well you know ... http://ubuntuforums.org/member.php?u=610428 [00:47] PHP code was probably written by a grand kid of the early 70s [00:47] ah [00:49] so yea - that could all be made prettier in code, but I'm not sure that for the end result we actually need do more than [00:49] build this (it's safe) [00:49] make it executable [00:49] run it [00:49] close apps [00:50] delete the files (which we could probably rm anyway) [00:51] if nothing else that's a better place to start than right click in a file manager [00:51] and I guess would be DE agnostic [00:53] surely wouldn't matter what xdg-open file.mp3 did as long as it works for FAMILY [00:53] wxl: ^^ does that last bit make sense to you? [01:08] Bye bye === chihchun_afk is now known as chihchun [06:44] Good morning [06:47] alesage: adt-run root> you probably have a password other than "0000", so to get sudo you need to tell it its password: adt-run --click what.ever -- ssh -s adb -- -p s3kr1t [06:47] balloons: ^ [07:30] morning pitti :) === vrruiz_ is now known as rvr === chihchun is now known as chihchun_afk [14:50] pitti, you think him not setting the password was it? he seemed to want to run the actually test as roo [14:54] balloons: yes, very likely; and due to dropping autopilot one now always needs sudo on the device for regenerating the apparmor profile [15:57] pitti many thanks, just caught this scrollback as I was about to ask :) [15:57] hey alesage, good morning [15:58] pitti hiya o/ [15:58] * alesage tries to think of any other questions about adt [16:05] morning alesage [16:05] balloons hiya o/ how are things? [16:08] feeling a bit anxious.. ready to get on with things.. yourself? === ara is now known as Guest54796 [16:20] balloons, your feeling anxious is making me feel a bit anxious but otherwise cool calm and collected :) [16:25] alesage, hehe! === roadmr is now known as roadmr_afk [20:24] balloons, hi [20:25] Letozaf_, evening to you [20:25] happy friday! [20:25] balloons, :-) happy friday to you too [20:25] balloons, just wanted to tell you that adt-run works now that I flashed my device [20:26] balloons, but is there a way to launch only one test at a time with adt-run ? [20:27] Letozaf_, ahh indeed [20:27] balloons, :O how ? [20:27] Letozaf_, for example: [20:27] ADT_AUTOPILOT_MODULE="-v calendar_app.tests.test_custom_proxy_objects.NewEventFormTestCase.test_fill_form" adt-run ubuntu-calendar-app/ --click=com.ubuntu.calendar --- ssh -s adb [20:28] pass the args for autopilot into ADT_AUTOPILOT_MODUL [20:28] so in this case, I passed a single test and -v [20:28] balloons, cool thanks a lot [21:03] ubuntu-qa a quick review? https://code.launchpad.net/~nskaggs/ubuntu-calendar-app/fix-ap-jenkins-runs/+merge/241143 [21:11] balloons, In filemanager there are more than one Page11 objects so I get errors in my tests : "raise ValueError("More than one item was returned for query" [21:11] Letozaf_, on that bug report there was a workaround nik90 found [21:12] if you find the bug, he detailed it [21:12] * balloons looks too [21:12] balloons, ok let me search [21:18] Letozaf_, https://bugs.launchpad.net/autopilot-qt/+bug/1341671 [21:18] Ubuntu bug 1341671 in Autopilot Qt Support "Versioned QML classes are not recognized by their public type name" [High,Confirmed] [21:19] balloons, thank you, couldn't find it [21:19] evening balloons Letozaf_ [21:19] elfy, good evening to you :) [21:19] Letozaf_, so the key as he points out is to add a property string to the object in question. That seems to fix it [21:20] so I would add a note referencing the bug, and add property strings to the qml. This does mean you'll have to build it though! (or at least replace the qml file) [21:20] given your issues, I would just focus on having it work on the desktop and let jenkins test also [21:22] balloons, the test is quite different on the desktop, so it surely will work on the desktop, but doesn't mean it will on the phone [21:22] elfy, oh I totally forgot [21:22] elfy, isotracker has dkessel's fixes now [21:23] can you attempt to break it? [21:23] Letozaf_, I know. First things first [21:23] but yea, once that's done we can give building a try again [21:24] balloons, yes, I will add the property and after try building [21:24] Letozaf_, well I mean you can create desktop builds easy enough so I assume that should let you continue === roadmr_afk is now known as roadmr [21:25] balloons: thanks and you dkessel [21:25] balloons, ok [21:25] but ... would it not be better when looking at historical data to filter before it went off and got 6 months worth for you [21:27] Letozaf_, I did speak with arto as well about being able to run in phone mode on the desktop; he should be working on it. I'll followup with him [21:27] balloons, ok thanks [21:29] balloons: can't see that's going to make much difference in the loading time when we get to the end of a cycle [21:30] elfy, what do you mean? it defaults to a month [21:30] you want 6 months anyway? [21:30] try grabbing all of utopic [21:30] oh [21:30] hang on I'll go look at utopic then :) [21:31] balloons: aah cool - yep that's awesome :) [21:31] wasn't easy to tell with vivid :D [21:32] dkessel: \o/ thank you :) [21:58] elfy balloons glad I could help :)