From 0922fd5e07c80c345874560ac0fe05d5c20d6681 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Tue, 9 Apr 2024 12:59:29 -0400 Subject: [PATCH] Restore video recording on Windows with DISABLE_VIDEO parameter (#1142) Signed-off-by: Peter Zhu --- integtest.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/integtest.sh b/integtest.sh index 77a213e99..1dd81db15 100755 --- a/integtest.sh +++ b/integtest.sh @@ -216,9 +216,8 @@ fi # We need to ensure the cypress tests are the last execute process to # the error code gets passed to the CI. -if [ "$OSTYPE" = "msys" ] || [ "$OSTYPE" = "cygwin" ] || [ "$OSTYPE" = "win32" ]; then - echo "Disable video recording in Windows due to ffmpeg missing libs in Windows Docker Container" - echo "TODO: https://github.com/opensearch-project/opensearch-dashboards-functional-test/issues/1068" +if [ "$DISABLE_VIDEO" = "true" ]; then + echo "Disable video recording when running tests in Cypress" jq '. + {"video": false}' cypress.json > cypress_new.json # jq does not allow reading and writing on same file mv -v cypress_new.json cypress.json fi