From 62bf467fc2db4cab74fd1bb08950a2ef9b750fde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Sat, 12 Dec 2020 01:28:00 +0100 Subject: [PATCH] Fix warnings about constructions that have no effect --- .circleci/soltest_all.sh | 7 ++----- scripts/ASTImportTest.sh | 4 ++-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.circleci/soltest_all.sh b/.circleci/soltest_all.sh index fb738813b..ba6422692 100755 --- a/.circleci/soltest_all.sh +++ b/.circleci/soltest_all.sh @@ -44,15 +44,12 @@ then else export CIRCLE_NODE_INDEX=$((CIRCLE_NODE_INDEX - 1)) export CIRCLE_NODE_TOTAL=$((CIRCLE_NODE_TOTAL - 1)) - RUN_STEPS=$(seq 2 "$STEPS" | circleci tests split) + RUN_STEPS=$(seq 2 "$STEPS" | circleci tests split | xargs) fi else - RUN_STEPS=$(seq "$STEPS") + RUN_STEPS=$(seq "$STEPS" | xargs) fi -# turn newlines into spaces -RUN_STEPS=$(echo $RUN_STEPS) - echo "Running steps $RUN_STEPS..." STEP=1 diff --git a/scripts/ASTImportTest.sh b/scripts/ASTImportTest.sh index b03e11286..d11b63c40 100755 --- a/scripts/ASTImportTest.sh +++ b/scripts/ASTImportTest.sh @@ -61,9 +61,9 @@ function testImportExportEquivalence { then echo -e "ERROR: JSONS differ for $1: \n $DIFF \n" echo "Expected:" - echo "$(cat ./expected.json)" + cat ./expected.json echo "Obtained:" - echo "$(cat ./obtained.json)" + cat ./obtained.json else # Use user supplied diff view binary $DIFFVIEW expected.json obtained.json