diff options
author | Erich Eckner <git@eckner.net> | 2023-12-04 20:53:36 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2023-12-04 20:53:36 +0100 |
commit | 99b483e5ad124a9859993310b69fd10dc514c21d (patch) | |
tree | 061f8d2eb08cd66f432fac899a68ee099a649538 /run-test.sh | |
parent | d2cf940168bb6975dc660a3ec13b3e39e96ef636 (diff) | |
download | Milchtankstelle-99b483e5ad124a9859993310b69fd10dc514c21d.tar.xz |
add runner + mailer
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 |