arguments+=() expected_exitcode=255 # set IFS="" if you want trailing new lines, otherwise remove it IFS="" read -d '' expected_output <<'EOF' invalid key/value pair ./makepkg-template-tests/invalid-key/PKGBUILD:1: # template input; []³|>=bar; EOF IFS="" read -d '' expected_result <<'EOF' EOF