mirror of
https://github.com/reactos/buildbot_config.git
synced 2024-11-26 21:20:27 +00:00
730b11c26d
The directory name has been changed to reflect that.
23 lines
563 B
Bash
Executable File
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
|