summaryrefslogtreecommitdiffstats
path: root/testing/test_env.py
Commit message (Collapse)AuthorAgeFilesLines
* Only remove CHROME_SANDBOX_ENV from env if it is present.jln@chromium.org2013-06-251-1/+2
| | | | | | | | | | | | This will fix an error occuring on Windows. (patch from csharp@chromium.org) TBR=csharp Review URL: https://codereview.chromium.org/17702004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208535 0039d316-1c4b-4281-b951-d872f2087c98
* testing/test_env.py: don't silently disable the sandboxjln@chromium.org2013-06-251-3/+5
| | | | | | | | | | | If the sandbox is not installed, don't silently disable it. BUG=245376 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/17648002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208512 0039d316-1c4b-4281-b951-d872f2087c98
* Enable Chrome Sandbox with in test_env.pycsharp@chromium.org2012-08-301-0/+38
| | | | | | | | | | | | Properly setup the chrome sandbox when running test_env.py, if it is required. R=maruel@chromium.org BUG= Review URL: https://chromiumcodereview.appspot.com/10911014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154297 0039d316-1c4b-4281-b951-d872f2087c98
* Fix errors in xvfb.py and run_test_from_archive.pymaruel@chromium.org2012-08-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | run_test_from_archive_smoke_test.py didn't test directory creation so this was broken. I tested it manually and weeded out the current bug. For the modification in test_env.py, this is concerning. Without this modification, I was getting: Traceback (most recent call last): File "../testing/xvfb.py", line 133, in <module> sys.exit(main()) File "../testing/xvfb.py", line 129, in main return run_executable(sys.argv[2:], sys.argv[1], os.environ.copy()) File "../testing/xvfb.py", line 118, in run_executable return test_env.run_executable(cmd, env) AttributeError: 'module' object has no attribute 'run_executable' Adding a print() or anything else fixed the problem. I'm not sure what's corrupted on my system. TBR=cmp@chromium.org,csharp@chromium.org NOTRY=true BUG= Review URL: https://chromiumcodereview.appspot.com/10890027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153847 0039d316-1c4b-4281-b951-d872f2087c98
* Set LANG variable in test_env.pycsharp@chromium.org2012-08-141-1/+1
| | | | | | | | | | NOTRY=true BUG= Review URL: https://chromiumcodereview.appspot.com/10825322 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151493 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r144460 "Remove the linux-only CR_SOURCE_ROOT environment variable ↵maruel@chromium.org2012-07-261-0/+4
| | | | | | | | | | | | | | | | override of base::DIR_SOURCE_ROOT." CR_SOURCE_ROOT is used in practice by linux user(s), plural still to be determined, mostly for ChromeOS related development. R=willchan@chromium.org BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10808048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148621 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the linux-only CR_SOURCE_ROOT environment variable override of ↵maruel@chromium.org2012-06-271-3/+0
| | | | | | | | | | | | | | | | | | | | | | base::DIR_SOURCE_ROOT. The environment variable overidde was only implemented on linux and not on the other OSes. So it was not coherent across platforms. I searched for usage and didn't find anything compelling. If this change causes any breakage, simply revert it. If is is needed, it should be made coherent between platforms. Note that this trick is not compatible with test isolation, where test should find their data file at deterministic relative location, hence the removal of this override. R=willchan@chromium.org BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10661019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144460 0039d316-1c4b-4281-b951-d872f2087c98
* Copy fix_python_path() in more standalone files.maruel@chromium.org2012-05-311-2/+11
| | | | | | | | | | | | | | | | This script ensure that the current python is prepended on any python script invoked and that 'python' is replaced with the current python instance and not the system one. NOTRY=true TBR=csharp@chromium.org BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10449089 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139801 0039d316-1c4b-4281-b951-d872f2087c98
* Adjust Paths before Executioncsharp@chromium.org2012-05-231-0/+2
| | | | | | | | | | | | | | Ensure that the file paths passed to subprocess contain the appropriate separators for their OS. NOTRY=true R=maruel@chromium.org BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10413055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138594 0039d316-1c4b-4281-b951-d872f2087c98
* Implement dtrace log parsing for MacOSX.maruel@chromium.org2012-03-161-1/+5
| | | | | | | | | | | | | Rename strace_inputs.py to trace_inputs.py since it's now using both strace and dtrace, depending on the platform. R=rogerta@chromium.org BUG=98636 Review URL: http://codereview.chromium.org/9706058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127100 0039d316-1c4b-4281-b951-d872f2087c98
* Separate xvfb.py logic into its own scriptmaruel@chromium.org2012-03-091-0/+36
Add --flags flag to isolate.py. Fix issue with directory dependency. R=rogerta@chromium.org,mark@chromium.org BUG=117176 TEST="GYP_DEFINES=tests_run=run build/gyp_chromium; cd out/Debug; ninja base_unittests_run" work Review URL: http://codereview.chromium.org/9621014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125737 0039d316-1c4b-4281-b951-d872f2087c98