=== modified file 'doc/lava_test_shell.rst'
@@ -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'
@@ -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'
@@ -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