ci: cleanup electron dirs after running tests on arm (#29769)

* ci: cleanup electron dirs after running tests on arm

(cherry picked from commit 1c0a6045fbae8f9111fdd92730e5a81652e5a911)

* use start-stop-daemon to kill Xvfb
This commit is contained in:
John Kleinschmidt 2021-06-18 14:35:44 -04:00 committed by GitHub
parent e5aa13e2a4
commit 58c58c46c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -220,8 +220,11 @@ step-maybe-cleanup-arm64-mac: &step-maybe-cleanup-arm64-mac
rm -rf ~/Library/Application\ Support/Electron* rm -rf ~/Library/Application\ Support/Electron*
rm -rf ~/Library/Application\ Support/electron* rm -rf ~/Library/Application\ Support/electron*
elif [ "$TARGET_ARCH" == "arm" ] || [ "$TARGET_ARCH" == "arm64" ]; then elif [ "$TARGET_ARCH" == "arm" ] || [ "$TARGET_ARCH" == "arm64" ]; then
pkill Xvfb || echo "Xvfb not running" XVFB=/usr/bin/Xvfb
/sbin/start-stop-daemon --stop --exec $XVFB || echo "Xvfb not running"
pkill electron || echo "electron not running" pkill electron || echo "electron not running"
rm -rf ~/.config/Electron*
rm -rf ~/.config/electron*
fi fi
when: always when: always