Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Unified Diff: ppapi/native_client/tools/browser_tester/browser_tester.py

Issue 17063018: NaCl: have browser_tester set-up the sandbox environment (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Grammar fix. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/native_client/tools/browser_tester/browser_tester.py
diff --git a/ppapi/native_client/tools/browser_tester/browser_tester.py b/ppapi/native_client/tools/browser_tester/browser_tester.py
index 061a13817c435a6b03356621519f4db9645d649c..2bf3614f7efef1b2ad0fa55ee80a76fc38e498ca 100755
--- a/ppapi/native_client/tools/browser_tester/browser_tester.py
+++ b/ppapi/native_client/tools/browser_tester/browser_tester.py
@@ -16,6 +16,7 @@ import urllib
script_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.join(script_dir, '../../../../third_party/'))
sys.path.append(os.path.join(script_dir, '../../../../tools/valgrind/'))
+sys.path.append(os.path.join(script_dir, '../../../../testing/'))
import browsertester.browserlauncher
import browsertester.rpclistener
@@ -24,6 +25,8 @@ import browsertester.server
import memcheck_analyze
import tsan_analyze
+import test_env
+
def BuildArgParser():
usage = 'usage: %prog [options]'
parser = optparse.OptionParser(usage)
@@ -197,6 +200,9 @@ def RunTestsOnce(url, options):
options.files.append(os.path.join(script_dir, 'browserdata', 'nacltest.js'))
+ # Setup the environment with the setuid sandbox path.
+ test_env.enable_sandbox_if_required(os.environ)
+
# Create server
host = GetHostName()
try:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698