VirtualBox

Changeset 45255 in vbox for trunk/src


Ignore:
Timestamp:
Mar 30, 2013 8:15:31 PM (12 years ago)
Author:
vboxsync
Message:

tstInstallInit.sh: Use TESTBOX_PATH_SCRATCH instead of /tmp if possible. (The test is probably not cleaning up properly, which causes trouble if run by different users on the same box.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/testcase/tstInstallInit.sh

    r44529 r45255  
    11#!/bin/sh
    22# $Id$
     3## @file
     4# VirtualBox init file creator unit test.
    35#
    4 # VirtualBox init file creator unit test.
     6
    57#
    68# Copyright (C) 2012-2013 Oracle Corporation
     
    2022tab="   "
    2123tmpbase="/tmp/tstInstallInit 99"  # Space in the name for a little stress...
     24if [ -n "${TESTBOX_PATH_SCRATCH}" ]; then
     25    tmpbase="${TESTBOX_PATH_SCRATCH}/tstInstallInit 99"
     26fi
    2227
    2328## The function definition at the start of every non-trivial shell script!
     
    6166    cat > "${1}/${2}" << EOF
    6267#!/bin/sh
    63 trap "touch \"${1}/stopped\"; exit" TERM 
     68trap "touch \"${1}/stopped\"; exit" TERM
    6469echo "1: \${1} 2: \${2} 3: \${3}" > "${1}/started"
    6570while true; do true; done
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette