about summary refs log tree commit diff
path: root/debian/tests/nm.py
diff options
context:
space:
mode:
authorDan Streetman <ddstreet@canonical.com>2019-12-04 11:59:06 -0500
committerDan Streetman <ddstreet@canonical.com>2019-12-06 09:26:47 -0500
commit6ed722e16a508b985f840eb876e5f4b27eb0d148 (patch)
tree12c011c1120f496e1f6bdda239ba52aa180d6d88 /debian/tests/nm.py
parentf461012f999254cc0fdac9cbb770912ae140611e (diff)
LP: #1855009
Diffstat (limited to 'debian/tests/nm.py')
-rwxr-xr-xdebian/tests/nm.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/tests/nm.py b/debian/tests/nm.py
index e9bb2b6f..7399c4d9 100755
--- a/debian/tests/nm.py
+++ b/debian/tests/nm.py
@@ -9,6 +9,7 @@ __license__ = 'GPL v2 or later'
 import sys
 import os
 import os.path
+import re
 import time
 import subprocess
 import socket
@@ -871,6 +872,10 @@ if __name__ == '__main__':
         sys.stderr.write('This integration test suite needs to be run as root\n')
         sys.exit(1)
 
+    if re.search(b's390', subprocess.run(['dpkg', '--print-architecture'], capture_output=True).stdout):
+        print("s390 arch has no wireless support, skipping")
+        sys.exit(77)
+
     # write to stdout, not stderr
     runner = unittest.TextTestRunner(stream=sys.stdout, verbosity=2)
     unittest.main(testRunner=runner)