Commit 37fea8c4 authored by Ben Pastene's avatar Ben Pastene Committed by Commit Bot

chromeos: Point TMPDIR to /usr/local/tmp during VM/DUT tests.

vpython uses both HOME and TMPDIR as workspaces. Now that /tmp is
mounted with noexec, we need to point vpython to a tmp dir without that
restriction.

Bug: 990859
Change-Id: I17629676abb898923658a48862a909e99d4fac1e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1735554Reviewed-by: default avatarMike Frysinger <vapier@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Commit-Position: refs/heads/master@{#684074}
parent d8132736
...@@ -62,12 +62,13 @@ class RemoteTest(object): ...@@ -62,12 +62,13 @@ class RemoteTest(object):
BASIC_SHELL_SCRIPT = [ BASIC_SHELL_SCRIPT = [
'#!/bin/sh', '#!/bin/sh',
# /home is mounted with "noexec" in the device, but some of our tools # /home and /tmp are mounted with "noexec" in the device, but some of our
# and tests use the home dir as a workspace (eg: vpython downloads # tools and tests use those dirs as a workspace (eg: vpython downloads
# python binaries to ~/.vpython-root). /usr/local/tmp doesn't have this # python binaries to ~/.vpython-root and /tmp/vpython_bootstrap).
# restriction, so change the location of the home dir for the # /usr/local/tmp doesn't have this restriction, so change the location of
# duration of the test. # the home and temp dirs for the duration of the test.
'export HOME=/usr/local/tmp', 'export HOME=/usr/local/tmp',
'export TMPDIR=/usr/local/tmp',
] ]
def __init__(self, args, unknown_args): def __init__(self, args, unknown_args):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment