Merge lp:~pwlars/lava-test/uninstall into lp:lava-test/0.0

Proposed by Paul Larson on 2010-06-29
Status: Merged
Merged at revision: 10
Proposed branch: lp:~pwlars/lava-test/uninstall
Merge into: lp:lava-test/0.0
Diff against target: 19 lines (+12/-0)
1 file modified
abrek/builtins.py (+12/-0)
To merge this branch: bzr merge lp:~pwlars/lava-test/uninstall
Reviewer Review Type Date Requested Status
Linaro Infrastructure 2010-06-29 Pending
Review via email: mp+28811@code.launchpad.net

Description of the change

This one's pretty small. The support for uninstalling was already there, I just needed to add the command for it.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'abrek/builtins.py'
2--- abrek/builtins.py 2010-06-28 20:23:02 +0000
3+++ abrek/builtins.py 2010-06-29 23:09:24 +0000
4@@ -31,3 +31,15 @@
5 except Exception as strerror:
6 print "Test execution error: %s" % strerror
7 sys.exit(1)
8+
9+class cmd_uninstall(AbrekCmd):
10+ def run(self, argv):
11+ if len(argv) != 1:
12+ print "please specify the name of the test to uninstall"
13+ sys.exit(1)
14+ test = testloader(argv[0])
15+ try:
16+ test.uninstall()
17+ except Exception as strerror:
18+ print "Test uninstall error: %s" % strerror
19+ sys.exit(1)

Subscribers

People subscribed via source and target branches