phablet-test-run doesn't check that image is writable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Phablet Tools |
New
|
Undecided
|
Unassigned |
Bug Description
Using it to run test cases on a freshly flashed device won't work:
> phablet-test-run -p ubuntu-
adbd is already running as root
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: Unable to write to /var/cache/apt/
E: The package lists or status file could not be parsed or opened.
bash: cd: /home/phablet/
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
run_tests(args)
File "/usr/bin/
test_suite = load_test_
File "/usr/bin/
package = __import_
ImportError: No module named ubuntuuitoolkit
/usr/bin/
It would help if phablet-test-run could handle making the image writable because currently a lot of time is spent on typos or forgetting to touch the magic file etc. Ideally one command would be enough to run the tests on a new image.