From 9eeebce47cc8f43bdf857c07ac3b4ee73c00ead2 Mon Sep 17 00:00:00 2001 From: Felix Lohmeier Date: Mon, 4 Jan 2021 13:44:03 +0100 Subject: [PATCH] improve functional tests for delete command --- tests/delete-utf8.sh | 1 + tests/delete.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/delete-utf8.sh b/tests/delete-utf8.sh index cdcdfeb..08a53e3 100644 --- a/tests/delete-utf8.sh +++ b/tests/delete-utf8.sh @@ -27,6 +27,7 @@ DATA # ================================== ACTION ================================== # ${cmd} --create "tmp/${t}/${t}.csv" --projectName "${t} biểu tượng cảm xúc ⛲" +${cmd} --list | grep "${t}" || exit 1 ${cmd} --delete "${t} biểu tượng cảm xúc ⛲" ${cmd} --list | grep "${t}" | cut -d ':' -f 2 > "tmp/${t}/${t}.output" diff --git a/tests/delete.sh b/tests/delete.sh index c1c6872..f555cb5 100644 --- a/tests/delete.sh +++ b/tests/delete.sh @@ -27,6 +27,7 @@ DATA # ================================== ACTION ================================== # ${cmd} --create "tmp/${t}/${t}.csv" +${cmd} --list | grep "${t}" || exit 1 ${cmd} --delete "${t}" ${cmd} --list | grep "${t}" | cut -d ':' -f 2 > "tmp/${t}/${t}.output"