tests: sha1sums --check can take a list of hashes

There is no need to cat the file in as input and instead the the program
will load from disk.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2020-03-04 16:18:50 +00:00 committed by Sebastien Boeuf
parent 689415e5ff
commit a4cca5f60a

View File

@ -69,7 +69,7 @@ if [ ! -f "$EOAN_OS_RAW_IMAGE" ]; then
fi
pushd $WORKLOADS_DIR
cat sha1sums | sha1sum --check
sha1sum sha1sums --check
if [ $? -ne 0 ]; then
echo "sha1sum validation of images failed, remove invalid images to fix the issue."
exit 1