Skip to content

Commit

Permalink
Restore video recording on Windows with DISABLE_VIDEO parameter (#1142)
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
(cherry picked from commit 1a04ae2)
  • Loading branch information
peterzhuamazon authored and github-actions[bot] committed Apr 9, 2024
1 parent 22c6937 commit 7d1fd47
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 @@ -120,9 +120,8 @@ echo "BROWSER_PATH: $BROWSER_PATH"
# 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 7d1fd47

Please sign in to comment.