From 52f0701ca195733e005e9df3b70ae457a04243e8 Mon Sep 17 00:00:00 2001 From: Bostjan Skufca Jese Date: Wed, 4 Sep 2024 23:05:14 +0000 Subject: [PATCH] tests: Fix test for systemd unit name datasource (Snoopy reports empty as "-") --- tests/datasource/datasource_systemd_unit_name.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/datasource/datasource_systemd_unit_name.sh b/tests/datasource/datasource_systemd_unit_name.sh index 83a46c30..7d51e51e 100755 --- a/tests/datasource/datasource_systemd_unit_name.sh +++ b/tests/datasource/datasource_systemd_unit_name.sh @@ -43,6 +43,11 @@ else fi +# Adjust the empty value to pass the test +if [ "$VAL_EXPECTED" == "" ]; then + VAL_EXPECTED="-" +fi + ### Evaluate