From 70ba7dba2a57bd9a3b869033304819e2e9241a92 Mon Sep 17 00:00:00 2001 From: Quentin Defenouillere Date: Mon, 18 Feb 2019 10:48:01 +0100 Subject: [PATCH] [pyflakes.sh] Added HEADLESS = False to pipeline For Selenium modules, HEADLESS should always be set back to True before pushing an MR. --- tools/pyflakes.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/pyflakes.sh b/tools/pyflakes.sh index 52ffab7e3..596a0ad9b 100755 --- a/tools/pyflakes.sh +++ b/tools/pyflakes.sh @@ -29,6 +29,7 @@ grep -nE "^ *print(\(| )" ${MODULE_FILES} && echo 'Error: Use of print in module grep -n xrange ${MODULE_FILES3} && echo 'Error: xrange is forbidden' && err=21 grep -nE "from (urllib|urlparse) import" ${MODULE_FILES3} && echo 'Error: python2 urllib is forbidden' && err=22 grep -nE "^import (urllib|urlparse)$" ${MODULE_FILES3} && echo 'Error: python2 urllib is forbidden' && err=22 +grep -nE "HEADLESS[[:space:]]*=[[:space:]]*False" ${MODULE_FILES} && echo 'Error: HEADLESS must be set back to True' && err=23 if [ ${VER} -eq 2 ] then -- 2.24.1