testrunner failing with "bash: run_test.py: command not found"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu CI Engine |
Fix Released
|
Critical
|
Vincent Ladeuil |
Bug Description
Test runner step is failing after you can see a "bash: run_test.py: command not found" on /var/log/
{{{
INFO:image_test:The test bed is ready
INFO:image_
bash: run_test.py: command not found
INFO:image_
INFO:image_
INFO:image_
INFO:image_
}}}
Also, testbed cloud-init fails: (testbed-
{{{
Cloud-init v. 0.7.3 running 'modules:final' at Sat, 21 Jun 2014 02:17:50 +0000. Up 604.52 seconds.
-su: /home/ubuntu/
2014-06-21 02:17:50,416 - util.py[WARNING]: Failed running /var/lib/
}}}
According to vila both errors can be related, and also related to saucy as the tests run using a precise image and they don't fail with that.
{{{
vila | Ursinha: I'm surprised, the test I added with that bug should fail if run_test.py not being there...
vila | Ursinha: hmm, except that test is incomplete :-/ So indeed I may have miss something with my semi-manual testing, let me re-check
Ursinha | vila: so that might mean that run_test is in the wrong path, for example, and would never work?
vila | Ursinha: more probably it's not there at all for reasons yet unknown
vila | Ursinha: an additional bug is that I don't catch that cloud-init failure
Ursinha | vila: I wonder if the HOME change caused side effects?
vila | Ursinha: I'd be more inclined to suspect some saucy related issue, the side-effect of the HOME change is *really* limited
vila | Ursinha: the tests use a precise image because there is no saucy image available :-/
vila | Ursinha: and the incomplete test shouldn't matter here as there is a complete one with a... precise image that covers running the package test
}}}
Related branches
- Francis Ginther: Approve
- PS Jenkins bot (community): Approve (continuous-integration)
-
Diff: 156 lines (+60/-19)3 files modifiedtest_runner/tstrun/testbed.py (+24/-3)
test_runner/tstrun/tests/test_testbed.py (+4/-2)
test_runner/tstrun/tests/test_worker.py (+32/-14)
description: | updated |
description: | updated |
Changed in uci-engine: | |
importance: | Undecided → Critical |
Changed in uci-engine: | |
status: | In Progress → Fix Committed |
Changed in uci-engine: | |
status: | Fix Committed → Fix Released |
The testbed silently fails to install run_test.py and test_runner. tstrun. tests.test_ worker. TestWorkerHandl eRequest. test_handle_ request has been silently masking the bug by checking the existence of files and not their content (the files are created with an error message inside them in this case).
And indeed the content of the files helped in the diagnosis :-}