diff options
author | Gavin Howard <yzena.tech@gmail.com> | 2021-04-02 13:22:28 -0600 |
---|---|---|
committer | Gavin Howard <yzena.tech@gmail.com> | 2021-04-02 13:22:28 -0600 |
commit | 86b5753fd8f64e9b864e28611aa790fdce2c4d5c (patch) | |
tree | 5ce4e243aaaceef94776c3063da44dea71c58066 /tests | |
parent | e9ae81114186bb3a5f1a6259453d40f4267ae1e2 (diff) | |
download | platform_external_bc-86b5753fd8f64e9b864e28611aa790fdce2c4d5c.tar.gz platform_external_bc-86b5753fd8f64e9b864e28611aa790fdce2c4d5c.tar.bz2 platform_external_bc-86b5753fd8f64e9b864e28611aa790fdce2c4d5c.zip |
Fix a bug in the new test
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/other.sh | 6 |
1 files changed, 6 insertions, 0 deletions
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" |