Skip to content

Commit

Permalink
Restore video recording on Windows with DISABLE_VIDEO parameter (open…
Browse files Browse the repository at this point in the history
…search-project#1142)

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
  • Loading branch information
peterzhuamazon authored and LDrago27 committed May 3, 2024
1 parent 3ef49cb commit 0922fd5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions integtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0922fd5

Please sign in to comment.