From b9d329c026c8809a6b7ab3cd312598d66081e3f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sun, 10 Mar 2019 11:21:51 +0100 Subject: Don't error out when h2spec can't be compiled --- test/h2spec_SUITE.erl | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'test') diff --git a/test/h2spec_SUITE.erl b/test/h2spec_SUITE.erl index cd68a48..173a7ac 100644 --- a/test/h2spec_SUITE.erl +++ b/test/h2spec_SUITE.erl @@ -28,11 +28,16 @@ init_per_suite(Config) -> case os:getenv("H2SPEC") of false -> skip; - _ -> - cowboy_test:init_http(h2spec, #{ - env => #{dispatch => init_dispatch()}, - max_concurrent_streams => 100 - }, Config) + H2spec -> + case filelib:is_file(H2spec) of + false -> + skip; + true -> + cowboy_test:init_http(h2spec, #{ + env => #{dispatch => init_dispatch()}, + max_concurrent_streams => 100 + }, Config) + end end. end_per_suite(_Config) -> -- cgit v1.2.3