diff options
author | teor <teor@torproject.org> | 2020-03-20 11:24:51 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2020-03-20 11:24:51 +1000 |
commit | 3aa855dc6877fc281082e2cdaba242d2cc06430f (patch) | |
tree | 3ce663f279c720b9cdfafd634fef39c482db8b25 /src | |
parent | 190cda0e2ba2faa300758f4899a6c28de6886bfc (diff) | |
parent | 42ea03eb7f7e380016ed5440697a81cebe731aa1 (diff) | |
download | tor-3aa855dc6877fc281082e2cdaba242d2cc06430f.tar.gz tor-3aa855dc6877fc281082e2cdaba242d2cc06430f.zip |
Merge branch 'maint-0.4.1' into maint-0.4.2
Diffstat (limited to 'src')
-rw-r--r-- | src/test/testing_common.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/testing_common.c b/src/test/testing_common.c index ff6028ddb4..06a6f312ad 100644 --- a/src/test/testing_common.c +++ b/src/test/testing_common.c @@ -343,6 +343,21 @@ main(int c, const char **v) atexit(remove_directory); + /* Look for TOR_SKIP_TESTCASES: a space-separated list of tests to skip. */ + const char *skip_tests = getenv("TOR_SKIP_TESTCASES"); + if (skip_tests) { + smartlist_t *skip = smartlist_new(); + smartlist_split_string(skip, skip_tests, NULL, + SPLIT_IGNORE_BLANK, -1); + int n = 0; + SMARTLIST_FOREACH_BEGIN(skip, char *, cp) { + n += tinytest_skip(testgroups, cp); + tor_free(cp); + } SMARTLIST_FOREACH_END(cp); + printf("Skipping %d testcases.\n", n); + smartlist_free(skip); + } + int have_failed = (tinytest_main(c, v, testgroups) != 0); free_pregenerated_keys(); |