aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2020-04-06 16:39:28 +0200
committerLoïc Hoguin <[email protected]>2020-04-06 16:39:28 +0200
commit8cba8c3c68946b297d7cad63303677ab1da028f9 (patch)
tree5b25fd2a2f296b244dfbb824383488d27e9f3739
parent775091134dc49633595cfc5956612df0c5702c0f (diff)
downloadcowboy-8cba8c3c68946b297d7cad63303677ab1da028f9.tar.gz
cowboy-8cba8c3c68946b297d7cad63303677ab1da028f9.tar.bz2
cowboy-8cba8c3c68946b297d7cad63303677ab1da028f9.zip
NO_PARALLEL=1 will disable (most) parallel testing
This is to make up for very slow or low resource environments, like the FreeBSD CI environment currently.
-rw-r--r--test/cowboy_test.erl20
1 files changed, 12 insertions, 8 deletions
diff --git a/test/cowboy_test.erl b/test/cowboy_test.erl
index ffdc238..7ebe618 100644
--- a/test/cowboy_test.erl
+++ b/test/cowboy_test.erl
@@ -52,15 +52,19 @@ common_all() ->
].
common_groups(Tests) ->
+ Opts = case os:getenv("NO_PARALLEL") of
+ false -> [parallel];
+ _ -> []
+ end,
[
- {http, [parallel], Tests},
- {https, [parallel], Tests},
- {h2, [parallel], Tests},
- {h2c, [parallel], Tests},
- {http_compress, [parallel], Tests},
- {https_compress, [parallel], Tests},
- {h2_compress, [parallel], Tests},
- {h2c_compress, [parallel], Tests}
+ {http, Opts, Tests},
+ {https, Opts, Tests},
+ {h2, Opts, Tests},
+ {h2c, Opts, Tests},
+ {http_compress, Opts, Tests},
+ {https_compress, Opts, Tests},
+ {h2_compress, Opts, Tests},
+ {h2c_compress, Opts, Tests}
].
init_common_groups(Name = http, Config, Mod) ->