From cf98c1cc49798bc8b56b845f769961586e9a83e4 Mon Sep 17 00:00:00 2001 From: Andreas Wolf Date: Tue, 3 Sep 2024 14:46:00 +0200 Subject: [PATCH] Allow running e2e tests w/o Fractor config file --- e2e/run-test.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/e2e/run-test.sh b/e2e/run-test.sh index 3e97f93..9fb5fe8 100755 --- a/e2e/run-test.sh +++ b/e2e/run-test.sh @@ -28,7 +28,13 @@ do # copy over our fixture to the path that Fractor will run in cp -r $TEST_DIR/fixtures/ $TEST_DIR/result/ - ./vendor/bin/fractor process -c $TESTS_BASE_DIR/$TEST_DIR/fractor.php > $TEST_DIR/output.txt + CONFIG_FILE="" + if [ -f $TESTS_BASE_DIR/$TEST_DIR/fractor.php ] + then + CONFIG_FILE="-c $TESTS_BASE_DIR/$TEST_DIR/fractor.php" + fi + + ./vendor/bin/fractor process $CONFIG_FILE > $TEST_DIR/output.txt set +x echo