summaryrefslogtreecommitdiff
path: root/automated/linux/ltp
diff options
context:
space:
mode:
authorChase Qi <chase.qi@linaro.org>2017-06-19 16:09:27 +0800
committerChase Qi <chase.qi@linaro.org>2017-06-19 16:09:27 +0800
commit890c1200dbc71953bce7fb050c4f2953eb9bd2ca (patch)
treef5e27645ebff3cd75fe0cdd27e2089cebdb588cf /automated/linux/ltp
parent337d7fbab5ce502cc83f5aa446e416ba41df333a (diff)
linux: ltp: install quota to solve test dependency
* quota is required by quota_remount_test01 * cope with shellchecks Change-Id: Iac605a4d75d0652e305989511f1d7369603f8e9c Signed-off-by: Chase Qi <chase.qi@linaro.org>
Diffstat (limited to 'automated/linux/ltp')
-rwxr-xr-xautomated/linux/ltp/ltp.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/automated/linux/ltp/ltp.sh b/automated/linux/ltp/ltp.sh
index 141bc65..619bf9b 100755
--- a/automated/linux/ltp/ltp.sh
+++ b/automated/linux/ltp/ltp.sh
@@ -1,5 +1,6 @@
#!/bin/bash
+# shellcheck disable=SC1091
. ../../lib/sh-test-lib
OUTPUT="$(pwd)/output"
RESULT_FILE="${OUTPUT}/result.txt"
@@ -66,7 +67,7 @@ install_ltp() {
# Parse LTP output
parse_ltp_output() {
- egrep "PASS|FAIL|CONF" "$1" | awk '{print $1" "$2}' | sed s/CONF/SKIP/ >> "${RESULT_FILE}"
+ grep -E "PASS|FAIL|CONF" "$1" | awk '{print $1" "$2}' | sed s/CONF/SKIP/ >> "${RESULT_FILE}"
}
# Run LTP test suite
@@ -94,11 +95,11 @@ else
# shellcheck disable=SC2154
case "${dist}" in
debian|ubuntu)
- pkgs="xz-utils flex bison build-essential wget curl net-tools"
+ pkgs="xz-utils flex bison build-essential wget curl net-tools quota"
install_deps "${pkgs}" "${SKIP_INSTALL}"
;;
centos|fedora)
- pkgs="xz flex bison make automake gcc gcc-c++ kernel-devel wget curl net-tools"
+ pkgs="xz flex bison make automake gcc gcc-c++ kernel-devel wget curl net-tools quota"
install_deps "${pkgs}" "${SKIP_INSTALL}"
;;
*)