diff options
author | Chaoren Lin <chaorenl@google.com> | 2015-06-06 14:51:34 +0000 |
---|---|---|
committer | Chaoren Lin <chaorenl@google.com> | 2015-06-06 14:51:34 +0000 |
commit | d7d78783f35c228b76cbf8ded828bf5c97196447 (patch) | |
tree | 79d2ef92b88b6b2c6322e22bc130442f3e12019f | |
parent | 0b8bff15bb19e9afbe5953c4cdfaba55ff527769 (diff) | |
download | lldb-d7d78783f35c228b76cbf8ded828bf5c97196447.tar.gz |
Use skipIf instead of skipUnless in TestTerminal for better readability.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@239220 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/functionalities/tty/TestTerminal.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functionalities/tty/TestTerminal.py b/test/functionalities/tty/TestTerminal.py index 877775667..3905459f6 100644 --- a/test/functionalities/tty/TestTerminal.py +++ b/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? |