tests: Add a test case for lua scripts

This is currently unsupported, let's add a test case. Prep for support for
script overrides.

Closes: #973
Approved by: jlebon
This commit is contained in:
Colin Walters 2017-09-05 20:36:17 -04:00 committed by Atomic Bot
parent f69717bf69
commit c093a587a2

View File

@ -79,6 +79,16 @@ vm_rpmostree install postorder{1,2}
vm_rpmostree cleanup -p
echo "ok post ordering"
# lua should (currently) fail
vm_build_rpm luapkg \
post_args "-p <lua>" \
post 'posix.stat("/")'
if vm_rpmostree install luapkg 2>err.txt; then
assert_not_reached "lua post?"
fi
assert_file_has_content_literal err.txt "unsupported <lua> script in '%post'"
echo "ok lua %post"
# script expansion
vm_build_rpm scriptpkg2 \
post_args "-e" \