From a858cc1ecd3cb69b82160d298b93f2e12476d55d Mon Sep 17 00:00:00 2001 From: dorien-er Date: Tue, 6 Feb 2024 15:46:14 +0100 Subject: [PATCH] update test --- src/busco/busco_list_datasets/test.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/busco/busco_list_datasets/test.sh b/src/busco/busco_list_datasets/test.sh index 053f41bc..c67a7801 100644 --- a/src/busco/busco_list_datasets/test.sh +++ b/src/busco/busco_list_datasets/test.sh @@ -3,4 +3,11 @@ ## VIASH START ## VIASH END -busco --list-datasets > $par_output \ No newline at end of file +"$meta_executable" \ + --output datasets.txt + +echo ">> Checking output" +[ ! -f "datasets.txt" ] && echo "datasets.txt does not exist" && exit 1 + +echo ">> Checking if output is empty" +[ ! -s "datasets.txt" ] && echo "datasets.txt is empty" && exit 1