summaryrefslogtreecommitdiffstats
path: root/tools/isolate/trace_inputs_smoke_test.py
diff options
context:
space:
mode:
authormaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-11 18:45:22 +0000
committermaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-11 18:45:22 +0000
commit51a6b19d1ca74f79697d71f06b0de84e1c977b49 (patch)
tree3ccd703617403cc5720ba56e4db9caff5ae09664 /tools/isolate/trace_inputs_smoke_test.py
parent12126d37c6fafd799821164a00bf1fdd240b9ec3 (diff)
downloadchromium_src-51a6b19d1ca74f79697d71f06b0de84e1c977b49.zip
chromium_src-51a6b19d1ca74f79697d71f06b0de84e1c977b49.tar.gz
chromium_src-51a6b19d1ca74f79697d71f06b0de84e1c977b49.tar.bz2
Add touch-only detection for strace API implementation.
Update smoke test accordingly. R=cmp@chromium.org BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10748009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146159 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/isolate/trace_inputs_smoke_test.py')
-rwxr-xr-xtools/isolate/trace_inputs_smoke_test.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/isolate/trace_inputs_smoke_test.py b/tools/isolate/trace_inputs_smoke_test.py
index c4fdca7..0dc3d72 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)