diff mbox

[Branch,~linaro-validation/lava-test/trunk] Rev 136: Merged dashes-to-underscores

Message ID 20120322135514.11713.22678.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Le Chi Thu March 22, 2012, 1:55 p.m. UTC
Merge authors:
  Paul Larson <paul.larson@linaro.org>
Related merge proposals:
  https://code.launchpad.net/~pwlars/lava-test/dashes-to-underscores/+merge/98011
  proposed by: Paul Larson (pwlars)
  review: Approve - Zygmunt Krynicki (zkrynicki)
  review: Resubmit - Paul Larson (pwlars)
------------------------------------------------------------
revno: 136 [merge]
committer: Le Chi Thu le.chi.thu@linaro.org <le.chi.thu@linaro.org>
branch nick: trunk
timestamp: Thu 2012-03-22 14:44:10 +0100
message:
  Merged dashes-to-underscores
modified:
  lava_test/commands.py


--
lp:lava-test
https://code.launchpad.net/~linaro-validation/lava-test/trunk

You are subscribed to branch lp:lava-test.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-test/trunk/+edit-subscription
diff mbox

Patch

=== 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)