From df44aedf4c06cda5c8608ad2b0916a5c18de1ea0 Mon Sep 17 00:00:00 2001 From: Patryk Mungai Date: Thu, 14 Mar 2019 13:14:15 +0000 Subject: kselftests: fix tar magic Not all versions of tar automatically detect compressed archives (eg. BusyBox v1.22.1 version of tar). Hence the [z] option needs to be specified in order to successfully untar a gunzip archive in these cases. --- automated/linux/kselftest/kselftest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automated/linux/kselftest/kselftest.sh b/automated/linux/kselftest/kselftest.sh index 033105a..0924b46 100755 --- a/automated/linux/kselftest/kselftest.sh +++ b/automated/linux/kselftest/kselftest.sh @@ -146,7 +146,7 @@ else # Download and extract kselftest tarball. wget http://testdata.validation.linaro.org/tests/kselftest/"${TESTPROG}" -O kselftest.tar.gz fi - tar xf "kselftest.tar.gz" + tar zxf "kselftest.tar.gz" # shellcheck disable=SC2164 cd "kselftest" fi -- cgit v1.2.3