summaryrefslogtreecommitdiff
path: root/test/run_device_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/run_device_tests.py')
-rwxr-xr-xtest/run_device_tests.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/run_device_tests.py b/test/run_device_tests.py
index 6884bed674..85f092a0c8 100755
--- a/test/run_device_tests.py
+++ b/test/run_device_tests.py
@@ -300,7 +300,7 @@ class AllTests:
if not have_private:
return []
sys.path.append(private_dir)
- import private_tests # pylint: disable=import-error
+ import private_tests # pylint: disable=import-error,import-outside-toplevel
for test_args in private_tests.tests:
tests.append(TestConfig(**test_args))
@@ -358,9 +358,7 @@ def read_file_gsutil(path: str) -> bytes:
cmd = ["gsutil", "cat", path]
logging.debug('Running command: "%s"', " ".join(cmd))
- gsutil = subprocess.run(
- cmd, stdout=subprocess.PIPE
- ) # pylint: disable=subprocess-run-check
+ gsutil = subprocess.run(cmd, stdout=subprocess.PIPE, check=False)
gsutil.check_returncode()
return gsutil.stdout