Skip to content

Commit

Permalink
test: simplify, $LOGNAME may not be set
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Wiberg <[email protected]>
  • Loading branch information
troglobit committed Dec 30, 2024
1 parent 02011d8 commit ff71ed7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/hostname.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ verify_hst()

if [ "$hst" = "@" ]; then
pri=user.panic
usr="$LOGNAME"
usr="kilroy"
else
pri=daemon.notice
usr="jean"
Expand Down Expand Up @@ -65,5 +65,4 @@ run_step "Verify basic tag based filtering (2)" verify_hst "$HST2" "$HST2LG"
run_step "Verify not in syslog" verify_not "$SYSLOG" "$MSG1"

run_step "Verify unfiltered host logging" verify_hst "@" "$SYSLOG" "$TEXT"
run_step "Verify unfiltered message in syslog" verify_log "$SYSLOG" "$TEXT"
run_step "Verify unfiltered message not filtered" verify_not "$HST1LG" "$TEXT"

0 comments on commit ff71ed7

Please sign in to comment.