Skip to content

Commit

Permalink
Extend test with command line invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
SFrijters committed Dec 29, 2024
1 parent ba4d1e1 commit 86a3707
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@
print(text)
if "2 Delivered" not in text:
raise Exception("Missing test '2 Delivered' in output of 'logwatch --output stdout'")
# Ensure we didn't send email along with the stdout
text = server.succeed("logwatch --output stdout")
print(text)
if "2 Delivered" not in text:
raise Exception("Missing test '2 Delivered' in output of 'logwatch --output stdout'")
'';
};
});
Expand Down

0 comments on commit 86a3707

Please sign in to comment.