Apply black code formatter on all Python code
[babeltrace.git] / tests / utils / python / testrunner.py
index d3879b6a00ab9ff36e6f2b8b5409e43cca3587a7..6606246a0377e5c07d6ba30b7cff97c9d35d231a 100644 (file)
@@ -28,27 +28,31 @@ import argparse
 
 if __name__ == '__main__':
     argparser = argparse.ArgumentParser()
-    argparser.add_argument('-f', '--failfast',
-                           help='Stop on first fail or error',
-                           action='store_true')
+    argparser.add_argument(
+        '-f', '--failfast', help='Stop on first fail or error', action='store_true'
+    )
 
-    argparser.add_argument('start_dir',
-                           help='Base directory where to search for tests',
-                           type=str)
+    argparser.add_argument(
+        'start_dir', help='Base directory where to search for tests', type=str
+    )
 
     mut_exclu_group = argparser.add_mutually_exclusive_group(required=True)
 
-    mut_exclu_group.add_argument('-p', '--pattern',
-                           help='Glob-style pattern of test files to run '
-                           '(e.g. test_event*.py)',
-                           type=str)
-
-    mut_exclu_group.add_argument('-t', '--test-case',
-                           help='Run a specfic test module name, test class '
-                           'name, or test method name '
-                           '(e.g. test_event.EventTestCase.test_clock_value)',
-                           type=str)
+    mut_exclu_group.add_argument(
+        '-p',
+        '--pattern',
+        help='Glob-style pattern of test files to run ' '(e.g. test_event*.py)',
+        type=str,
+    )
 
+    mut_exclu_group.add_argument(
+        '-t',
+        '--test-case',
+        help='Run a specfic test module name, test class '
+        'name, or test method name '
+        '(e.g. test_event.EventTestCase.test_clock_value)',
+        type=str,
+    )
 
     args = argparser.parse_args()
 
@@ -70,7 +74,6 @@ if __name__ == '__main__':
         # else it will fail to parse.
         sys.exit(1)
 
-
     if tests.countTestCases() < 1:
         print("No tests matching '%s' found in '%s'" % (pattern, start_dir))
         sys.exit(1)
This page took 0.023509 seconds and 4 git commands to generate.