From cd34b290f444614f887eb284aaf135027c7cef41 Mon Sep 17 00:00:00 2001
From: Daniil Baturin <daniil@baturin.org>
Date: Thu, 11 Jul 2019 21:04:52 +0200
Subject: Separate system and CLI tests.

---
 scripts/system/test_module_load.py | 31 +++++++++++++++++++++++++++++++
 scripts/test_module_load.py        | 31 -------------------------------
 2 files changed, 31 insertions(+), 31 deletions(-)
 create mode 100755 scripts/system/test_module_load.py
 delete mode 100755 scripts/test_module_load.py

diff --git a/scripts/system/test_module_load.py b/scripts/system/test_module_load.py
new file mode 100755
index 000000000..c96229b92
--- /dev/null
+++ b/scripts/system/test_module_load.py
@@ -0,0 +1,31 @@
+#!/usr/bin/env python3
+
+import sys
+import os
+
+modules = {
+  "intel": ["e1000", "e1000e", "igb", "ixgb", "ixgbe", "ixgbevf", "i40e", "i40evf"],
+  "accel_ppp": ["ipoe"],
+  "misc": ["wireguard"]
+}
+
+if __name__ == '__main__':
+    success = True
+
+    print("[load modules] Test execution started")
+    for msk in modules:
+        ms = modules[msk]
+        for m in ms:
+            # We want to uncover all modules that fail,
+            # not fail at the first one
+            try:
+                os.system("modprobe {0}".format(m))
+            except Exception as e:
+                print("[load modules] Test [modprobe {0}] failed: {1}".format(module, e))
+                success = False
+
+    if not success:
+        print("Test [load modules] failed")
+        sys.exit(1)
+    else:
+        print("[load modules] Test succeeded")
diff --git a/scripts/test_module_load.py b/scripts/test_module_load.py
deleted file mode 100755
index c96229b92..000000000
--- a/scripts/test_module_load.py
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/env python3
-
-import sys
-import os
-
-modules = {
-  "intel": ["e1000", "e1000e", "igb", "ixgb", "ixgbe", "ixgbevf", "i40e", "i40evf"],
-  "accel_ppp": ["ipoe"],
-  "misc": ["wireguard"]
-}
-
-if __name__ == '__main__':
-    success = True
-
-    print("[load modules] Test execution started")
-    for msk in modules:
-        ms = modules[msk]
-        for m in ms:
-            # We want to uncover all modules that fail,
-            # not fail at the first one
-            try:
-                os.system("modprobe {0}".format(m))
-            except Exception as e:
-                print("[load modules] Test [modprobe {0}] failed: {1}".format(module, e))
-                success = False
-
-    if not success:
-        print("Test [load modules] failed")
-        sys.exit(1)
-    else:
-        print("[load modules] Test succeeded")
-- 
cgit v1.2.3