diff --git a/tests/scripts/run_tests.sh b/tests/scripts/run_tests.sh index 7b361d7..c7f84e9 100755 --- a/tests/scripts/run_tests.sh +++ b/tests/scripts/run_tests.sh @@ -177,6 +177,22 @@ function run_all { umount_dirs } +# All of the changes as a user (lorax-ted) +function run_as_user { + [ ! -e "/home/lorax-ted" ] && useradd -m lorax-ted + su - lorax-ted -c "mkksiso -a /etc/services -V "mkksiso-test" -c "console=ttyS0,115200n8" --rm "quiet" --ks $KS $BOOTISO $OUTISO" || exit 1 + mount $OUTISO $ISODIR || exit 1 + + test_ks + test_serial + test_volid + test_files + test_quiet + + status "Use all the options as a user" + umount_dirs +} + if [ ! -e /usr/share/lorax/templates.d/80-rhel/ ]; then echo "Failed to find lorax-templates-rhel templates in /usr/share/lorax/templates.d/" @@ -205,5 +221,6 @@ new_volid add_files remove_quiet run_all +run_as_user exit $FAILANY