diff options
author | David Spickett <david.spickett@linaro.org> | 2020-04-22 15:24:49 +0100 |
---|---|---|
committer | David Spickett <david.spickett@linaro.org> | 2020-04-23 12:54:33 +0100 |
commit | 52eb5a521c093601e3fba856599288bad7a5d96f (patch) | |
tree | 0e8a0c567c9d727becf411078f44cfc619c5f954 /TestRelease.job | |
parent | 2382c087b5f0d51a4556c8c62f4723ab5a0ab7c9 (diff) |
Shellcheck fixes round 2
Also update the sanity check
script to include .job files.
Change-Id: Ibf72d9ff346ff7b012d4e282a6ac8f3b7e73590d
Diffstat (limited to 'TestRelease.job')
-rwxr-xr-x | TestRelease.job | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/TestRelease.job b/TestRelease.job index ba76905b..893fd9e2 100755 --- a/TestRelease.job +++ b/TestRelease.job @@ -3,7 +3,7 @@ user_workspace="$PWD" tcwg_regression_rev=master -OPTS="`getopt -o w:t:h -l tarball:,workspace:,help,tcwg-regression-rev:`" +getopt -o w:t:h -l tarball:,workspace:,help,tcwg-regression-rev: -Q while test $# -gt 0; do case $1 in -w|--workspace) user_workspace=$2; shift ;; @@ -36,7 +36,7 @@ tarball_name="${testdir}/${file}" dir="`echo ${file} | sed -e 's:.tar.xz::'`" tar Jxf ${tarball_name} --directory=${testdir} if test $? -gt 0; then - echo "ERROR: ${tarball} is corrupted!" + echo "ERROR: ${tarball_name} is corrupted!" exit 1 fi @@ -55,7 +55,7 @@ fi target="`echo ${dir} | egrep -o '(arm|aarch64)[_0-9a-z-]*' | sed -e 's:-\$::'`" host="`echo "$dir" | grep -oP '\-[0-9]{4}\.[0-9]{1,2}\-(rc[0-9]+\-)?\\K.*' | sed -r 's:_?'"$target"'::'`" -win32="`echo {$file} | grep -c mingw`" +win32="`echo ${file} | grep -c mingw`" # We want to execute as many tests as possible, and not stop on the # first failing one. @@ -104,7 +104,9 @@ else # Create a G: drive, as a shortcut makes wine automagically use # it. # Make sure WINEPREFIX exists by running a dummy command - export WINEPREFIX="$(pwd)/dotwine" + declare WINEPREFIX + WINEPREFIX="$(pwd)/dotwine" + export WINEPREFIX echo "ECHO Hello" | wine cmd rm -f ${WINEPREFIX}/dosdevices/g: ln -s ${testdir}/${dir} ${WINEPREFIX}/dosdevices/g: |