VirtualBox

Changeset 45254 in vbox for trunk/src/VBox/Installer


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

tstHeadlessXOrg.sh: Use TESTBOX_PATH_SCRATCH instead of /tmp if possible.

File:
1 edited

Legend:

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

    r44063 r45254  
    11#!/bin/sh
    22# $Id$
    3 #
     3## @file
    44# VirtualBox X Server auto-start service unit test.
    55#
    6 # Copyright (C) 2012 Oracle Corporation
     6
     7#
     8# Copyright (C) 2012-2013 Oracle Corporation
    79#
    810# This file is part of VirtualBox Open Source Edition (OSE), as
     
    9395# Create a temporary directory for configuration and logging.
    9496TEST_FOLDER_BASE="/tmp/${TEST_NAME} 99/"  # Space in the name to test quoting.
     97if [ -n "${TESTBOX_PATH_SCRATCH}" ]; then
     98    TEST_FOLDER_BASE="${TESTBOX_PATH_SCRATCH}/${TEST_NAME} 99/"
     99fi
    95100{
    96101  rm -rf "${TEST_FOLDER_BASE}" 2>/dev/null &&
    97102    mkdir -m 0700 "${TEST_FOLDER_BASE}" 2>/dev/null
    98 } || abort "Could not create test folder.\n"
     103} || abort "Could not create test folder (${TEST_FOLDER_BASE}).\n"
    99104
    100105###############################################################################
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