Skip to content
Snippets Groups Projects
Commit 7d46c8d2 authored by Jan David Mol's avatar Jan David Mol
Browse files

Allow validate to run as root in a non-interactive shell

parent d99cbb3a
No related branches found
No related tags found
No related merge requests found
......@@ -24,8 +24,8 @@ function runTest() {
echo " Time: `date +"%F %T"`"
echo "----------------------------------------------------------------"
if [ "${TEST%%.root.test}" == "${TEST}" ]; then
bash -v $TEST
if [ "${TEST%%.root.test}" == "${TEST}" -o `id -u` == 0 ]; then
ssh -tt localhost "cd $PWD && bash -v $TEST" # need an interactive shell for sudo inside the test scripts
RESULT=$?
else
if [ $CAN_SUDO -eq 0 ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment