Skip to content

Commit

Permalink
Refuse the situation when MYGNUTAR and MYTAR_C are both set.
Browse files Browse the repository at this point in the history
  • Loading branch information
janpgit committed Jun 21, 2024
1 parent 03c7648 commit 7fb538b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions getting-credits/2024/tests/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ if [[ -z $MYGNUTAR ]]; then
exit 1
fi
else
# if [[ -n $MYTAR_C ]]; then
# echo "ERROR: both MYGNUTAR and MYTAR_C are set. That is" \
# "likely not what you want. Exiting."
# exit 1
# fi
if [[ "$MYTAR_C" != $mytar_c_def_value ]]; then
echo "ERROR: both MYGNUTAR and MYTAR_C are set. That is" \
"likely not what you want. Exiting."
exit 1
fi
echo "WARNING: Using '$MYGNUTAR' as the GNU tar testing binary."
echo "WARNING: This is only for verifying the test setup."
fi
Expand Down
3 changes: 2 additions & 1 deletion getting-credits/2024/tests/stef-config
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export MYTAR=${MYGNUTAR:-$(pwd)/$MYTARNAME}

# You either set and export MYTAR_C to your mytar.c before running the test
# suite, or set it in $STEF_CONFIG_LOCAL.
export MYTAR_C=${MYTAR_C:-"set-me-to-mytar.c-see-README"}
export mytar_c_def_value="set-me-to-mytar.c-see-README"
export MYTAR_C=${MYTAR_C:-$mytar_c_def_value}

# You either set and export GNUTAR to the GNU tar binary path before running the
# test suite, or set it in $STEF_CONFIG_LOCAL.
Expand Down

0 comments on commit 7fb538b

Please sign in to comment.