diff options
Diffstat (limited to 'run-test.sh')
-rwxr-xr-x | run-test.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/run-test.sh b/run-test.sh new file mode 100755 index 0000000..e92f7ca --- /dev/null +++ b/run-test.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +if ! cnt=$( + npx playwright test +); then + { + printf '%s\n' \ + 'To: erich@eckner.net' \ + 'From: erich@'"$(hostname)" \ + 'Subject: playwright' \ + '' \ + 'Die Milchtankstelle geht wieder:' \ + '' \ + "${cnt}" + } \ + | sendmailadvanced -t +fi |