mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 03:56:16 +00:00
CI: Ensure the manpage generation step shuts down the VM on failure
Currently, if the script fails, it simply runs "exit 1". This exits the script, but keeps the VM running, so CI hangs until it times out. Instead of exiting, write a failure status to an error log and shutdown. CI can then read that error log and fail the run if needed.
This commit is contained in:
parent
5ebfa8d620
commit
9e9a07415e
Notes:
sideshowbarker
2024-07-17 04:57:16 +09:00
Author: https://github.com/trflynn89
Commit: 9e9a07415e
Pull-request: https://github.com/SerenityOS/serenity/pull/15867
2 changed files with 28 additions and 4 deletions
|
@ -54,9 +54,20 @@ export SERENITY_KERNEL_CMDLINE="graphics_subsystem_mode=off panic=shutdown syste
|
|||
ninja -C "$BUILD_DIR" -- run | sed -re 's,''c,,'
|
||||
echo
|
||||
|
||||
echo "Extracting generated manpages ..."
|
||||
mkdir fsmount
|
||||
sudo mount -t ext2 -o loop,rw "$BUILD_DIR"/_disk_image fsmount
|
||||
|
||||
if sudo test -f "fsmount/root/generate_manpages_error.log"; then
|
||||
echo ":^( Generating manpages failed, error log:"
|
||||
sudo cat fsmount/root/generate_manpages_error.log
|
||||
|
||||
sudo umount fsmount
|
||||
rmdir fsmount
|
||||
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Extracting generated manpages ..."
|
||||
# 'cp' would create the new files as root, but we don't want that.
|
||||
sudo tar -C fsmount/root/generated_manpages --create . | tar -C Base/usr/share/man/ --extract
|
||||
sudo umount fsmount
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue