From 942650d269690c1ab8e450995e6bfc225f271052 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Thu, 28 Apr 2022 17:24:50 +0200
Subject: [PATCH] Execute configurable script before and after running backstop

---
 bin/backstop | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bin/backstop b/bin/backstop
index 510396b..2a55eee 100755
--- a/bin/backstop
+++ b/bin/backstop
@@ -2,7 +2,9 @@
 
 export $(cat .env | xargs)
 cd tests/backstop
+./backstop-script-before
 docker run --rm -t -v $(php /usr/local/bin/volume.php) -w $PWD --network=traefik-public backstopjs/backstopjs "$@"
+./backstop-script-after
 EC=$?
 
 exit $EC
-- 
GitLab