From 99b483e5ad124a9859993310b69fd10dc514c21d Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 4 Dec 2023 20:53:36 +0100 Subject: add runner + mailer --- run-test.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 run-test.sh 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 -- cgit v1.2.3-70-g09d2