summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2023-12-04 20:53:36 +0100
committerErich Eckner <git@eckner.net>2023-12-04 20:53:36 +0100
commit99b483e5ad124a9859993310b69fd10dc514c21d (patch)
tree061f8d2eb08cd66f432fac899a68ee099a649538
parentd2cf940168bb6975dc660a3ec13b3e39e96ef636 (diff)
downloadMilchtankstelle-99b483e5ad124a9859993310b69fd10dc514c21d.tar.xz
add runner + mailer
-rwxr-xr-xrun-test.sh17
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