summaryrefslogtreecommitdiff
path: root/net/test/qtaguid_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'net/test/qtaguid_test.py')
-rwxr-xr-xnet/test/qtaguid_test.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/test/qtaguid_test.py b/net/test/qtaguid_test.py
index ad99a57..c121df2 100755
--- a/net/test/qtaguid_test.py
+++ b/net/test/qtaguid_test.py
@@ -27,7 +27,10 @@ import tcp_test
CTRL_PROCPATH = "/proc/net/xt_qtaguid/ctrl"
OTHER_UID_GID = 12345
+HAVE_QTAGUID = os.path.exists(CTRL_PROCPATH)
+
+@unittest.skipUnless(HAVE_QTAGUID, "xt_qtaguid not supported")
class QtaguidTest(tcp_test.TcpBaseTest):
def RunIptablesCommand(self, args):