Skip to content

Commit e00fe60

Browse files
committed
playwright: fix tmt in dist-git
Recently testing-farm tests were failing and a fix was merged in 3507013e where TMT_TREE is used instead of TMT_SOURCE_DIR. This got the CI working, but broke the tests when running in dist-git. We need to use TMT_TREE when in CI, and TMT_SOURCE_DIR when in dist-git. This commit adds the dist-git case back while keeping TMT_TREE for Packit.
1 parent 917f914 commit e00fe60

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

schutzbot/playwright_tests.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22
set -euo pipefail
33

44
PW_WORKERS=4
5-
if [ -n "${TMT_TREE:-}" ]; then
6-
# Move to the directory with sources
5+
6+
if [ -n "${PACKIT_PACKAGE_NAME:-}" ]; then
7+
# Runs in CI (Packit)
78
cd "${TMT_TREE}"
89
npm ci
10+
elif [ -n "${TMT_SOURCE_DIR:-}" ]; then
11+
# Runs in dist-git
12+
cd "${TMT_SOURCE_DIR}/cockpit-image-builder"
13+
npm ci
914
elif [ "${CI:-}" != "true" ]; then
15+
# Local fallback
1016
cd ../
1117
npm ci
1218
# halve the workers on schutzbot to increase reliability

0 commit comments

Comments
 (0)