Skip to content
Snippets Groups Projects
Commit b201faed authored by Isaac Hartung's avatar Isaac Hartung Committed by Tim Wickberg
Browse files

Change test35.2 to prints warning when run as root.

Bug 3395
parent 42232fd2
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,28 @@ set output_use "test$test_id.use.output"
set script_use "test$test_id.use.bash"
set tmp_file "test$test_id"
#
# get my uid and clear any vestigial triggers
#
set uid -1
spawn $bin_id -u
expect {
-re "($number)" {
set uid $expect_out(1,string)
exp_continue
}
eof {
wait
}
}
if {$uid == -1} {
send_user "\nCan't get my uid\n"
exit 1
} elseif {$uid == 0} {
send_user "\nWARNING: Can't run this test as user root\n"
exit 0
}
proc find_bb_jobid { fname bb_jobid } {
global bin_cat
......
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