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