| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f44f335 commit d3525d7
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1393,6 +1393,8 @@ def BuildOptions(): | |||
| 1393 | 1393 | default="") | |
| 1394 | 1394 | result.add_option('--temp-dir', | |
| 1395 | 1395 | help='Optional path to change directory used for tests', default=False) | |
| 1396 | + result.add_option('--test-root', | ||
| 1397 | + help='Optional path to change test directory', dest='test_root', default=None) | ||
| 1396 | 1398 | result.add_option('--repeat', | |
| 1397 | 1399 | help='Number of times to repeat given tests', | |
| 1398 | 1400 | default=1, type="int") | |
@@ -1576,8 +1578,10 @@ def Main(): | |||
| 1576 | 1578 | ||
| 1577 | 1579 | workspace = abspath(join(dirname(sys.argv[0]), '..')) | |
| 1578 | 1580 | test_root = join(workspace, 'test') | |
| 1581 | + if options.test_root is not None: | ||
| 1582 | + test_root = options.test_root | ||
| 1579 | 1583 | suites = GetSuites(test_root) | |
| 1580 | - repositories = [TestRepository(join(workspace, 'test', name)) for name in suites] | ||
| 1584 | + repositories = [TestRepository(join(test_root, name)) for name in suites] | ||
| 1581 | 1585 | repositories += [TestRepository(a) for a in options.suite] | |
| 1582 | 1586 | ||
| 1583 | 1587 | root = LiteralTestSuite(repositories, test_root) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments