From 56a762dea978b0e56a4aff3f22f8d8987c40ae11 Mon Sep 17 00:00:00 2001
From: Doug Jacobsen <dmjacobsen@lbl.gov>
Date: Tue, 28 Nov 2017 10:21:05 -0700
Subject: [PATCH] Block test if not super user

bug 4443
---
 testsuite/expect/test1.99 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/testsuite/expect/test1.99 b/testsuite/expect/test1.99
index 522101c6ab1..27c632f1b4e 100755
--- a/testsuite/expect/test1.99
+++ b/testsuite/expect/test1.99
@@ -43,6 +43,10 @@ array set ports {}
 
 print_header $test_id
 
+if { ![test_super_user] } {
+        send_user "\nWARNING: This test can't be run without being a super user of the cluster.\n"
+	exit 0
+}
 if {$chk_ports == 0} {
 	send_user "\nWARNING: this test requires SrunPortRange to be configured\n"
 	exit 0
-- 
GitLab