diff --git a/tests/common/libtest-core.sh b/tests/common/libtest-core.sh index 14d9cd5c..878ec92b 100644 --- a/tests/common/libtest-core.sh +++ b/tests/common/libtest-core.sh @@ -105,9 +105,12 @@ assert_file_has_content () { } assert_file_has_content_literal () { - if ! grep -q -F -e "$2" "$1"; then - _fatal_print_file "$1" "File '$1' doesn't match fixed string list '$2'" - fi + fpath=$1; shift + for s in "$@"; do + if ! grep -q -F -e "$s" "$fpath"; then + _fatal_print_file "$fpath" "File '$fpath' doesn't match fixed string list '$s'" + fi + done } assert_symlink_has_content () {