Message ID | 20120322135514.11713.22678.launchpad@ackee.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== modified file 'lava_test/commands.py' --- lava_test/commands.py 2012-03-08 19:17:05 +0000 +++ lava_test/commands.py 2012-03-19 19:24:05 +0000 @@ -152,7 +152,10 @@ try: test = self._test_loader[self.args.test_id] except KeyError: - raise LavaCommandError("There is no test with the specified ID") + try: + test = self._test_loader[self.args.test_id.replace('-', '_')] + except KeyError: + raise LavaCommandError("There is no test with the specified ID") return self.invoke_with_test(test)