diff --git a/workflow/tests/plot_profile.bats b/workflow/tests/plot_profile.bats index 371b80fa5b54eff224d2336af1a1a5a59b41534c..d5da39f765f273488fcc6dce5675c49cd6e6ba18 100644 --- a/workflow/tests/plot_profile.bats +++ b/workflow/tests/plot_profile.bats @@ -11,8 +11,8 @@ profile_script="./workflow/scripts/plot_profile.sh" source ${profile_script} run compute_matrix test_data/ENCSR238SGC_pooled.fc_signal.bw /project/shared/bicf_workflow_ref/mouse/GRCm38/gencode.vM20.annotation.gtf FILE=computeMatrix.gz - if [[ -f "$FILE" ]]; then - echo "$FILE exist" + if [[ -s "$FILE" ]]; then + echo "$FILE exists and not empty" fi } @@ -20,7 +20,7 @@ profile_script="./workflow/scripts/plot_profile.sh" source ${profile_script} run plot_profile computeMatrix.gz FILE=plotProfile.png - if [[ -f "$FILE" ]]; then - echo "$FILE exist" + if [[ -s "$FILE" ]]; then + echo "$FILE exists and not empty" fi }