summaryrefslogtreecommitdiff
path: root/automated
diff options
context:
space:
mode:
authorNaresh Kamboju <naresh.kamboju@linaro.org>2016-11-08 12:22:57 +0530
committerNaresh Kamboju <naresh.kamboju@linaro.org>2016-11-08 12:28:21 +0530
commit4cb5f38bd1f246e31de780bd88b5cf31cec5cfad (patch)
treea7dd1879e70553fbacde806e8736da8830691d0d /automated
parent1396fb1685d43b34330b73c6bba8b9f51eddca82 (diff)
openssh-debian: adding usage()
Change-Id: If8a1c68926a078db3a97fa72feae25d44ed6b12b Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Diffstat (limited to 'automated')
-rwxr-xr-xautomated/linux/openssh/openssh-debian.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/automated/linux/openssh/openssh-debian.sh b/automated/linux/openssh/openssh-debian.sh
index 597f6bf..8a031ec 100755
--- a/automated/linux/openssh/openssh-debian.sh
+++ b/automated/linux/openssh/openssh-debian.sh
@@ -1,11 +1,17 @@
#!/bin/sh
+# shellcheck disable=SC1091
. ../../lib/sh-test-lib
OUTPUT="$(pwd)/output"
RESULT_FILE="${OUTPUT}/result.txt"
RESULT_LOG="${OUTPUT}/result_log.txt"
TEST_LOG="${OUTPUT}/test_log.txt"
+usage() {
+ echo "Usage: $0 [-s <true|false>]" 1>&2
+ exit 1
+}
+
parse_output() {
egrep "^failed|^ok" "${TEST_LOG}" 2>&1 | tee -a "${RESULT_LOG}"
sed -i -e 's/ok/pass/g' "${RESULT_LOG}"