
http://crrev.com/c/2229335 added Python3 support for the `test_env_unittest.py` files, but appears to have broken the test on Windows in the process. Fixing by adding back `sys.executable` in the command to run, as Windows doesn't support running scripts via shebang. Bug: 942720 Change-Id: I40757a78ad707f36481e2906251ee8451aa89318 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2238269 Reviewed-by: Ben Pastene <bpastene@chromium.org> Reviewed-by: Dirk Pranke <dpranke@chromium.org> Commit-Queue: Dirk Pranke <dpranke@chromium.org> Cr-Commit-Position: refs/heads/master@{#776726}
18 lines
465 B
Python
Executable File
18 lines
465 B
Python
Executable File
#!/usr/bin/env python
|
|
# Copyright (c) 2019 The Chromium Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
"""Script for use in test_env unittests."""
|
|
|
|
import os
|
|
import sys
|
|
|
|
import test_env
|
|
|
|
HERE = os.path.dirname(os.path.abspath(__file__))
|
|
TEST_SCRIPT = os.path.join(HERE, 'test_env_test_script.py')
|
|
|
|
if __name__ == '__main__':
|
|
test_env.run_command([sys.executable, TEST_SCRIPT])
|