Skip to content
Snippets Groups Projects
Commit 2060a5e7 authored by Danny Auble's avatar Danny Auble
Browse files

alter tests to work correctly if you aren't a super user

parent 1da2a810
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,10 @@ set test_id "1.72"
set freq_val 0
set exit_code 0
if {[test_cray]} {
set timeout 60
}
if {[get_job_acct_freq] == 0} {
send_user "\nWARNING:this test requires JobAcctGatherFrequency to be set\n"
exit $exit_code
......
......@@ -93,6 +93,11 @@ proc cleanup { } {
}
if { ![test_super_user] } {
send_user "\nWARNING: This test can't be run without being a super user of the cluster.\n"
exit 0
}
send_user "\n=== Testing Node Information ===\n"
set first_option 1
foreach option [array names node_info] {
......
......@@ -52,6 +52,12 @@ print_header $test_id
make_bash_script $script "
sleep 10
"
if { ![test_super_user] } {
send_user "\nWARNING: This test can't be run without being a super user of the cluster.\n"
exit 0
}
proc sub_job { cpu_cnt part } {
global sbatch script job_id number exit_code
......
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