tools: skip the option parsing test during valgrind
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 7 Mar 2019 01:22:13 +0000 (11:22 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 12 Mar 2019 05:10:15 +0000 (15:10 +1000)
We don't want to valgrind through python...

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools/test-tool-option-parsing.py

index c1c7b98..498b80c 100755 (executable)
@@ -206,6 +206,9 @@ class TestDebugGUI(TestToolWithOptions, TestLibinputTool):
 
 
 if __name__ == '__main__':
+    if os.environ.get('USING_VALGRIND'):
+        sys.exit(77)
+
     parser = argparse.ArgumentParser(description='Verify a libinput tool\'s option parsing')
     parser.add_argument('tool_path', metavar='/path/to/builddir/libinput',
                         type=str, nargs='?',