Fix warnings about constructions that have no effect

This commit is contained in:
Kamil Śliwak 2020-12-12 01:28:00 +01:00
parent 4e3ebda0f4
commit 62bf467fc2
2 changed files with 4 additions and 7 deletions

View File

@ -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

View File

@ -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