diff --git a/qa/vagrant/src/test/resources/packaging/utils/utils.bash b/qa/vagrant/src/test/resources/packaging/utils/utils.bash index c43408b3d24..33d8afb09a0 100644 --- a/qa/vagrant/src/test/resources/packaging/utils/utils.bash +++ b/qa/vagrant/src/test/resources/packaging/utils/utils.bash @@ -139,6 +139,11 @@ skip_not_zip() { assert_file_exist() { local file="$1" + local count=$(echo "$file" | wc -l) + [[ "$count" == "1" ]] || { + echo "assert_file_exist must be run on a single file at a time but was called on [$count] files: $file" + false + } if [ ! -e "$file" ]; then echo "Should exist: ${file} but does not" fi