buildbot_config/worker/vmware_clean
Colin Finck 730b11c26d
Update workers to latest BuildBot release.
The directory name has been changed to reflect that.
2019-06-29 11:46:24 +02:00

23 lines
563 B
Bash
Executable File

#!/bin/bash
# ReactOS BuildBot Build Scripts for Linux
# vmware_clean - Clean the remainders of a previous VMware session before running regression tests
source ../../config.inc
# Kill the VM if running
vmrun -T player stop $VMWARE_VMX_FILE 2>&1 >/dev/null
# Kill the serial log
rm -f $VMWARE_SERIAL_FILE
# Remove a possible lock on the VMDK file
rm -rf ${VMWARE_VMDK_FILE}.lck
# Unmount any mounted VMDK
vmware_mount=`mount | grep /run/vmware/fuse/ | awk '{print $3}'`
if [ "$vmware_mount" != "" ]; then
umount -lf $vmware_mount
vmware-mount -X
fi
exit 0