You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/workflow-test.sh
+25-14Lines changed: 25 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,6 @@ function fail {
13
13
exit 1
14
14
}
15
15
16
-
17
16
functiontry_curl {
18
17
local n=1
19
18
local max=5
@@ -81,18 +80,30 @@ function ensure_vanilla {
81
80
docker exec -t $container /bin/bash -c 'php -l /var/www/html/index.php; retcode=$?; if [[ $retcode -ne 0 ]]; then echo "Either one of PHP or Wordpress is scrambled when not expected. Expected Vanilla PHP was not able to successfully parse Expected Vanilla /var/www/html/index.php and exited with code $retcode"; exit 1; fi;'
82
81
}
83
82
84
-
functionawait_transform_finish {
85
-
echo"Waiting for $1 to finish"
83
+
functionawait_scramble_finish {
84
+
echo"Waiting for Scrambling to finish"
86
85
{
87
86
while [[ "$(docker exec$container /bin/bash -c 'ps aux |grep scramble.sh | grep -v grep |wc -l')"!="0" ]];do
88
-
#echo "Waiting for scrambling to finish... $(docker exec $container /bin/bash -c 'ps aux |grep scramble.sh | grep -v grep |wc -l')"
89
87
sleep 1
90
88
done
91
89
92
90
sleep 1
93
91
} 2> /dev/null
94
92
95
-
echo"$1 finished."
93
+
echo"Scrambling finished."
94
+
}
95
+
96
+
functionawait_reset_finish {
97
+
echo"Waiting for Reset to finish"
98
+
{
99
+
while [[ "$(docker exec$container /bin/bash -c 'ps aux |grep reset.sh | grep -v grep |wc -l')"!="0" ]];do
0 commit comments