From 86b5753fd8f64e9b864e28611aa790fdce2c4d5c Mon Sep 17 00:00:00 2001 From: Gavin Howard Date: Fri, 2 Apr 2021 13:22:28 -0600 Subject: Fix a bug in the new test --- tests/other.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/other.sh b/tests/other.sh index 27f55a5e..d2ef4f6d 100755 --- a/tests/other.sh +++ b/tests/other.sh @@ -148,6 +148,12 @@ else easter_res="$testdir/dc_outputs/easter.txt" easter_out="$testdir/dc_outputs/easter_results.txt" + outdir=$(dirname "$easter_out") + + if [ ! -d "$outdir" ]; then + mkdir -p "$outdir" + fi + printf '4 April 2021\n' > "$easter_res" "$testdir/dc/scripts/easter.sh" "$exe" 2021 | head -c12 > "$easter_out" -- cgit v1.2.3