diff options
| author | jvoisin | 2015-11-27 14:04:45 +0100 |
|---|---|---|
| committer | jvoisin | 2015-11-27 14:04:45 +0100 |
| commit | bd1917dec25ce878477456b80a448b9334330b94 (patch) | |
| tree | 6d2a34b05a8290e56eb6e062227bf5f459ab9872 /test/test.py | |
| parent | d5a896dddeba644776d3d44fff0370c7fac465cf (diff) | |
`--local` is now the default when running the testsuite
Diffstat (limited to 'test/test.py')
| -rw-r--r-- | test/test.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/test/test.py b/test/test.py index 2072e18..34bb4b2 100644 --- a/test/test.py +++ b/test/test.py | |||
| @@ -96,17 +96,10 @@ if __name__ == '__main__': | |||
| 96 | import argparse | 96 | import argparse |
| 97 | 97 | ||
| 98 | parser = argparse.ArgumentParser(description='MAT testsuite') | 98 | parser = argparse.ArgumentParser(description='MAT testsuite') |
| 99 | parser.add_argument('-l', '--local', action='store_true', | ||
| 100 | help='Test the local version of mat') | ||
| 101 | parser.add_argument('-s', '--system', action='store_true', | 99 | parser.add_argument('-s', '--system', action='store_true', |
| 102 | help='Test the system-wide version of mat') | 100 | help='Test the system-wide version of mat') |
| 103 | 101 | ||
| 104 | if parser.parse_args().local is True: | 102 | if parser.parse_args().system is True: |
| 105 | IS_LOCAL = True | ||
| 106 | elif parser.parse_args().system is True: | ||
| 107 | IS_LOCAL = False | 103 | IS_LOCAL = False |
| 108 | else: | ||
| 109 | print('Please specify either --local or --system') | ||
| 110 | sys.exit(1) | ||
| 111 | 104 | ||
| 112 | sys.exit(run_all_tests() is False) | 105 | sys.exit(run_all_tests() is False) |
