Skip to content

Commit

Permalink
stop using shared memory
Browse files Browse the repository at this point in the history
  • Loading branch information
eschutho committed Sep 21, 2024
1 parent 1fb5e00 commit 50c30a1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/cypress_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,18 @@ def get_cypress_cmd(
build_id = generate_build_id()
browser = os.getenv("CYPRESS_BROWSER", "chrome")

# Add --disable-dev-shm-usage for Chrome browser
chrome_flags = "--disable-dev-shm-usage"

if use_dashboard:
# Run using cypress.io service
spec: str = "cypress/e2e/*/**/*"
cmd = (
f"{XVFB_PRE_CMD} "
f'{cypress_cmd} --spec "{spec}" --browser {browser} '
f"--record --group {group} --tag {REPO},{GITHUB_EVENT_NAME} "
f"--parallel --ci-build-id {build_id}"
f"--parallel --ci-build-id {build_id} "
f"-- {chrome_flags}"
)
else:
# Run local, but split the execution
Expand All @@ -73,6 +77,7 @@ def get_cypress_cmd(
f"{XVFB_PRE_CMD} "
f"{cypress_cmd} --browser {browser} "
f'--spec "{spec_list_str}" '
f"-- {chrome_flags}"
)
return cmd

Expand Down

0 comments on commit 50c30a1

Please sign in to comment.