From a55167644d37d92de1891bf555e2d30b5deb3b2e Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Tue, 31 Dec 2019 05:24:35 +0100 Subject: [PATCH] Refactor test script. --- ci/test.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ci/test.sh b/ci/test.sh index 54fb5ddab..3cbe0e758 100755 --- a/ci/test.sh +++ b/ci/test.sh @@ -41,8 +41,8 @@ main() { export QEMU_STRACE=1 - # test `cross check` - if [[ ! -z ${STD:-} ]]; then + if [[ ${STD:-} ]]; then + # test `cross check` td=$(mktemp -d) cargo init --lib --name foo $td pushd $td @@ -50,10 +50,8 @@ main() { cross check --target $TARGET popd rm -rf $td - fi - - # `cross build` test for targets where `std` is not available - if [[ -z "${STD:-}" ]]; then + else + # `cross build` test for targets where `std` is not available td=$(mktemp -d) git clone \