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