From d544bda27102b25dcd02e8bdda9823e8bdb2228d Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Tue, 10 Mar 2020 11:20:37 +0100 Subject: [PATCH] test: Use test scenario for selecting browser Similar to what cockpit-composer does. This is rather simplistic, but does fine until we need more complex scenarios. Also use plain shell in test/run, there are no bashisms. Closes #291 --- test/run | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/run b/test/run index 46a2d01..ed43e3a 100755 --- a/test/run +++ b/test/run @@ -1,4 +1,8 @@ -#! /bin/bash +#! /bin/sh +set -eu + # This is the expected entry point for Cockpit CI; will be called without -# arguments but with an appropriate $TEST_OS +# arguments but with an appropriate $TEST_OS, and optionally $TEST_SCENARIO + +[ -z "${TEST_SCENARIO:-}" ] || export TEST_BROWSER="$TEST_SCENARIO" make check