From bcd2786a6d7795ede2255ac9bc5b2d8964210b42 Mon Sep 17 00:00:00 2001 From: Chaoren Lin Date: Sat, 6 Jun 2015 14:51:34 +0000 Subject: [PATCH] Use skipIf instead of skipUnless in TestTerminal for better readability. llvm-svn: 239220 --- lldb/test/functionalities/tty/TestTerminal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/test/functionalities/tty/TestTerminal.py b/lldb/test/functionalities/tty/TestTerminal.py index 8777756..3905459 100644 --- a/lldb/test/functionalities/tty/TestTerminal.py +++ b/lldb/test/functionalities/tty/TestTerminal.py @@ -20,7 +20,7 @@ class LaunchInTerminalTestCase(TestBase): # If the test is being run under sudo, the spawned terminal won't retain that elevated # privilege so it can't open the socket to talk back to the test case - @unittest2.skipUnless(not hasattr(os, 'geteuid') or os.geteuid() != 0, + @unittest2.skipIf(hasattr(os, 'geteuid') and os.geteuid() == 0, "test cannot be run as root") # Do we need to disable this test if the testsuite is being run on a remote system? -- 2.7.4