Skip to content

Commit

Permalink
Merge pull request #271 from bostjan/fix-test-with-empty-systemd-unit…
Browse files Browse the repository at this point in the history
…-name

tests: Fix test for systemd unit name datasource (Snoopy reports empty value as "-")
  • Loading branch information
bostjan authored Sep 5, 2024
2 parents 99afc1c + 52f0701 commit 5f4133f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/datasource/datasource_systemd_unit_name.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ else

fi

# Adjust the empty value to pass the test
if [ "$VAL_EXPECTED" == "" ]; then
VAL_EXPECTED="-"
fi



### Evaluate
Expand Down

0 comments on commit 5f4133f

Please sign in to comment.