]> Nishi Git Mirror - gwion.git/commitdiff
:wrench: Update test contains
authorfennecdjay <astor.jeremie@wanadoo.fr>
Fri, 19 Jul 2019 15:28:42 +0000 (17:28 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Fri, 19 Jul 2019 15:28:42 +0000 (17:28 +0200)
help/test.sh

index 0f5889d276a84bb06d3b67a4e69f51d67bff0bba..af28a55a95b2ba7b208751c46124dc6b62da2201 100644 (file)
@@ -28,7 +28,7 @@ assert_returns() {
 
 assert_contain() {
   local contains
-  contains=$(grep '// \[contains\]' "$1" | cut -d "]" -f2)
+  contains=$(grep '#! \[contains\]' "$1" | cut -d "]" -f2)
   contains=${contains:1}
   [ -z "$contains" ] && return 0
   grep "$contains" "$2.err.log" > /dev/null && return 0