diff mbox

[Branch,~linaro-validation/lava-dispatcher/trunk] Rev 493: late review fixes for test run attachments

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

Commit Message

Michael-Doyle Hudson Dec. 11, 2012, 7:50 p.m. UTC
------------------------------------------------------------
revno: 493
committer: Michael Hudson-Doyle <michael.hudson@linaro.org>
branch nick: trunk
timestamp: Wed 2012-12-12 08:49:25 +1300
message:
  late review fixes for test run attachments
modified:
  doc/lava_test_shell.rst
  lava_test_shell/lava-test-case-attach
  lava_test_shell/lava-test-run-attach


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

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

Patch

=== modified file 'doc/lava_test_shell.rst'
--- doc/lava_test_shell.rst	2012-12-10 20:34:15 +0000
+++ doc/lava_test_shell.rst	2012-12-11 19:49:25 +0000
@@ -114,7 +114,7 @@ 
  1. test case id
  2. the file to attach
  3. (optional) the MIME type of the file (if no MIME type is passed, a
-    guess is made based on the filename
+    guess is made based on the filename)
 
 lava-test-run-attach
 --------------------

=== modified file 'lava_test_shell/lava-test-case-attach'
--- lava_test_shell/lava-test-case-attach	2012-12-04 22:20:34 +0000
+++ lava_test_shell/lava-test-case-attach	2012-12-11 19:49:25 +0000
@@ -22,8 +22,12 @@ 
     usage
     exit 1
 fi
+if [ ! -z "$FILE" ]; then
+    usage
+    exit 1
+fi
 if [ ! -f "$FILE" ]; then
-    usage
+    echo "File $FILE not found"
     exit 1
 fi
 if [ -z "$TEST_CASE_ID" ]; then

=== modified file 'lava_test_shell/lava-test-run-attach'
--- lava_test_shell/lava-test-run-attach	2012-12-10 23:43:42 +0000
+++ lava_test_shell/lava-test-run-attach	2012-12-11 19:49:25 +0000
@@ -20,8 +20,12 @@ 
     usage
     exit 1
 fi
+if [ ! -z "$FILE" ]; then
+    usage
+    exit 1
+fi
 if [ ! -f "$FILE" ]; then
-    usage
+    echo "File $FILE not found"
     exit 1
 fi