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:
parent
e5aa13e2a4
commit
58c58c46c4
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue