diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-03-19 18:38:18 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-03-19 18:38:18 -0400 |
commit | 42ea03eb7f7e380016ed5440697a81cebe731aa1 (patch) | |
tree | da503ca6c3658e6c98aae7c705436f84b2dac107 /src | |
parent | cb69a5a1184e1b02523308c6d51b0f8f715f064e (diff) | |
parent | ee3d23c05a828dc693ead2dcf083c9091d502425 (diff) | |
download | tor-42ea03eb7f7e380016ed5440697a81cebe731aa1.tar.gz tor-42ea03eb7f7e380016ed5440697a81cebe731aa1.zip |
Merge branch 'ticket33643_skip_035' into ticket33643_skip_041
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 ad22898ce5..6137def5a8 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(); |