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

Unified Diff: tools/isolate/trace_inputs_smoke_test.py

Issue 10748009: Add touch-only detection for strace API implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « tools/isolate/trace_inputs.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/isolate/trace_inputs_smoke_test.py
diff --git a/tools/isolate/trace_inputs_smoke_test.py b/tools/isolate/trace_inputs_smoke_test.py
index c4fdca7f5e51383ad49694fa0ad4909a1a309fa0..0dc3d72dc1dc330a52d5ecc0ab4531b4d255c5c1 100755
--- a/tools/isolate/trace_inputs_smoke_test.py
+++ b/tools/isolate/trace_inputs_smoke_test.py
@@ -574,6 +574,10 @@ class TraceInputsImport(TraceInputsBase):
'executable': self.real_executable,
'files': [
{
+ 'path': os.path.join(u'data', 'trace_inputs', 'test_file.txt'),
+ 'size': 0,
+ },
+ {
'path': os.path.join(u'data', 'trace_inputs', 'touch_only.py'),
'size': self._size('data', 'trace_inputs', 'touch_only.py'),
},
@@ -581,6 +585,10 @@ class TraceInputsImport(TraceInputsBase):
'initial_cwd': self.initial_cwd,
},
}
+ if sys.platform != 'linux2':
+ # TODO(maruel): Remove once properly implemented.
+ expected['root']['files'].pop(0)
+
actual = results.flatten()
self.assertTrue(actual['root'].pop('pid'))
self.assertEquals(expected, actual)
« no previous file with comments | « tools/isolate/trace_inputs.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698