Skip to content

Commit d7db222

Browse files
Niraj Acharyasaw-jan
authored andcommitted
test(ci): fix bug where full-ci tag does not force all tests to run
1 parent 52f108f commit d7db222

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.drone.star

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -735,8 +735,7 @@ def e2eTests(ctx):
735735
"image": OC_CI_NODEJS_IMAGE,
736736
"environment": environment,
737737
"commands": [
738-
"cat %s/tests/drone/suites.env" % dir["web"],
739-
". %s/tests/drone/suites.env || true" % dir["web"],
738+
"[ -f \"%s/tests/drone/suites.env\" ] && . \"%s/tests/drone/suites.env\"",
740739
"cd tests/e2e",
741740
"bash run-e2e.sh",
742741
],
@@ -2051,7 +2050,7 @@ def uploadA11yResult(ctx):
20512050
]
20522051

20532052
def filterTestSuitesToRun(ctx, suites = []):
2054-
if "full-ci" in ctx.build.title.lower() and ctx.build.event == "cron":
2053+
if "full-ci" in ctx.build.title.lower() or ctx.build.event == "cron":
20552054
return []
20562055
if len(suites) and "cucumber/" in suites[0]:
20572056
ENV = "FEATURE_FILES="

0 commit comments

Comments
 (0)