Browse Source

Merge pull request #8499 from AvaloniaUI/fixes/automation-tests-osx-close-app

OSX Integration Tests: close app after running
Dan Walmsley 3 years ago
parent
commit
777f98bf44
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tests/Avalonia.IntegrationTests.Appium/macos-clean-build-test.sh

+ 3 - 0
tests/Avalonia.IntegrationTests.Appium/macos-clean-build-test.sh

@@ -3,7 +3,10 @@
 SCRIPT_DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)
 cd "$SCRIPT_DIR"/../.. || exit
 git clean -xdf
+pkill IntegrationTestApp
 ./build.sh CompileNative
 ./samples/IntegrationTestApp/bundle.sh
 open -n ./samples/IntegrationTestApp/bin/Debug/net6.0/osx-arm64/publish/IntegrationTestApp.app
+pkill IntegrationTestApp
 dotnet test tests/Avalonia.IntegrationTests.Appium/ -l "console;verbosity=detailed"
+pkill IntegrationTestApp