- Timestamp:
- Mar 30, 2013 8:15:31 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/testcase/tstInstallInit.sh
r44529 r45255 1 1 #!/bin/sh 2 2 # $Id$ 3 ## @file 4 # VirtualBox init file creator unit test. 3 5 # 4 # VirtualBox init file creator unit test. 6 5 7 # 6 8 # Copyright (C) 2012-2013 Oracle Corporation … … 20 22 tab=" " 21 23 tmpbase="/tmp/tstInstallInit 99" # Space in the name for a little stress... 24 if [ -n "${TESTBOX_PATH_SCRATCH}" ]; then 25 tmpbase="${TESTBOX_PATH_SCRATCH}/tstInstallInit 99" 26 fi 22 27 23 28 ## The function definition at the start of every non-trivial shell script! … … 61 66 cat > "${1}/${2}" << EOF 62 67 #!/bin/sh 63 trap "touch \"${1}/stopped\"; exit" TERM 68 trap "touch \"${1}/stopped\"; exit" TERM 64 69 echo "1: \${1} 2: \${2} 3: \${3}" > "${1}/started" 65 70 while true; do true; done
Note:
See TracChangeset
for help on using the changeset viewer.