summaryrefslogtreecommitdiff
path: root/automated/lib
diff options
context:
space:
mode:
Diffstat (limited to 'automated/lib')
-rwxr-xr-xautomated/lib/sh-test-lib6
1 files changed, 3 insertions, 3 deletions
diff --git a/automated/lib/sh-test-lib b/automated/lib/sh-test-lib
index b02c121..3b2ab43 100755
--- a/automated/lib/sh-test-lib
+++ b/automated/lib/sh-test-lib
@@ -129,9 +129,9 @@ report_fail() {
}
add_metric() {
- if [ "$#" -ne 4 ]; then
- warn_msg "The number of parameters less then 4"
- error_msg "Usage: add_metric test_case result measurement units"
+ if [ "$#" -lt 3 ]; then
+ warn_msg "The number of parameters less then 3"
+ error_msg "Usage: add_metric test_case result measurement [units]"
fi
test_case="$1"
result="$2"