Print this page
Nightly can use a different tempdir.

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/scripts/nightly.sh
          +++ new/usr/src/tools/scripts/nightly.sh
↓ open down ↓ 1263 lines elided ↑ open up ↑
1264 1264          if [ "$IA32_IHV_WS" = "" ]; then
1265 1265                  echo "IA32_IHV_WS: must be set for copying ihv proto"
1266 1266                  args_ok=n
1267 1267          fi
1268 1268          if [ ! -d "$IA32_IHV_WS" ]; then
1269 1269                  echo "$IA32_IHV_WS: not found"
1270 1270                  args_ok=n
1271 1271          fi
1272 1272  fi
1273 1273  
1274      -TMPDIR="/tmp/nightly.tmpdir.$$"
     1274 +if [[ -z "$TMPDIR_ROOT" ]]; then
     1275 +        TMPDIR_ROOT="/tmp"
     1276 +fi
     1277 +TMPDIR="${TMPDIR_ROOT}/nightly.tmpdir.$$"
1275 1278  export TMPDIR
1276 1279  rm -rf ${TMPDIR}
1277 1280  mkdir -p $TMPDIR || exit 1
1278 1281  chmod 777 $TMPDIR
1279 1282  
1280 1283  #
1281 1284  # Keep elfsign's use of pkcs11_softtoken from looking in the user home
1282 1285  # directory, which doesn't always work.   Needed until all build machines
1283 1286  # have the fix for 6271754
1284 1287  #
↓ open down ↓ 1332 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX