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

Unified Diff: mojo/tools/mopy/gtest.py

Issue 1225673006: Revert of mandoline filesystem: Save cookie data to the mojo:filesystem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sqlite-fs
Patch Set: Created 5 years, 5 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 | « mojo/services/network/network_service_delegate.cc ('k') | sql/mojo/mojo_vfs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/tools/mopy/gtest.py
diff --git a/mojo/tools/mopy/gtest.py b/mojo/tools/mopy/gtest.py
index 189ae067bd3c42bf2f442ac8294091b568bc4284..b72aad36c99f47a1f54389fc6827a110bf30e46b 100644
--- a/mojo/tools/mopy/gtest.py
+++ b/mojo/tools/mopy/gtest.py
@@ -133,11 +133,10 @@
"""Build the apptest command line. This value isn't executed on Android."""
paths = Paths(config)
# On Linux, always run tests with xvfb, but not for --gtest_list_tests.
- not_list_tests = not "--gtest_list_tests" in args
- use_xvfb = config.target_os == Config.OS_LINUX and not_list_tests
- xvfb_prefix = [paths.xvfb, paths.build_dir] if use_xvfb else []
- data_dir = ["--use-temporary-user-data-dir"] if not_list_tests else []
- return xvfb_prefix + [paths.mojo_runner] + data_dir + args + [apptest]
+ use_xvfb = (config.target_os == Config.OS_LINUX and
+ not "--gtest_list_tests" in args)
+ prefix = [paths.xvfb, paths.build_dir] if use_xvfb else []
+ return prefix + [paths.mojo_runner] + args + [apptest]
# TODO(msw): Determine proper test timeout durations (starting small).
« no previous file with comments | « mojo/services/network/network_service_delegate.cc ('k') | sql/mojo/mojo_vfs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698