Skip to content

Commit

Permalink
move file check later in test
Browse files Browse the repository at this point in the history
  • Loading branch information
d3v-null committed Aug 21, 2024
1 parent ed9a80f commit 36c618b
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions demo/00_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,6 @@ source $SCRIPT_BASE/00_env.sh
# we do this after the giant-squid check to avoid showing the api key in the logs
set -eu

# #### #
# DATA #
# #### #
# DEMO: check raw files are present
if command -v md5sum &>/dev/null; then
if [[ -f "demo_data.md5sum" ]]; then
echo "validating raw files with md5sum"
md5sum -c demo_data.md5sum
fi
else
echo "md5sum not found, . couldn't validate raw files."
exit 1
fi

# #### #
# BINS #
# #### #
Expand Down Expand Up @@ -92,6 +78,20 @@ fi
# DEMO: verify beam
hyperdrive beam fee --output /dev/null

# #### #
# DATA #
# #### #
# DEMO: check raw files are present
if command -v md5sum &>/dev/null; then
if [[ -f "demo_data.md5sum" ]]; then
echo "validating raw files with md5sum, see README.md for download links"
md5sum -c demo_data.md5sum
fi
else
echo "md5sum not found, . couldn't validate raw files."
exit 1
fi

# ######## #
# OPTIONAL #
# ######## #
Expand Down

0 comments on commit 36c618b

Please sign in to comment.