diff options
author | Yan Wang <yawanng@google.com> | 2019-08-08 18:28:32 -0700 |
---|---|---|
committer | Yan Wang <yawanng@google.com> | 2019-08-08 18:34:36 -0700 |
commit | 2ae4f03578891bd51aab0d665955e268ff06b27a (patch) | |
tree | 4c3fca03cf629ae2a64a019e875ea511229748e2 /startop/scripts/iorap/compiler_test.py | |
parent | 72a487722f106bfc60f19f8e9fd6aedf3778b167 (diff) |
startop: Change trace duration in compiler.py to timedelta.
The time in timestamp is second, while the trace duration is
millisecond. Using timedelta to fix this ambiguity.
Test: pytest compiler_test.py
Change-Id: I6c445c3dac1b60aec77ead14df021b8a2dda7b5e
Diffstat (limited to 'startop/scripts/iorap/compiler_test.py')
-rw-r--r-- | startop/scripts/iorap/compiler_test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/startop/scripts/iorap/compiler_test.py b/startop/scripts/iorap/compiler_test.py index b5d28b03a8d5..1a9f059fc6b6 100644 --- a/startop/scripts/iorap/compiler_test.py +++ b/startop/scripts/iorap/compiler_test.py @@ -70,9 +70,9 @@ def test_compiler_main(tmpdir): # 10ms duration expected = os.path.join(DIR, 'test_fixtures/compiler/test_result_with_duration.TraceFile.pb') - assert_compile_result(output, expected, '--duration', '10') + assert_compile_result(output, expected, '--duration', '10000') # 30ms duration expected = os.path.join(DIR, 'test_fixtures/compiler/test_result_without_duration.TraceFile.pb') - assert_compile_result(output, expected, '--duration', '30') + assert_compile_result(output, expected, '--duration', '30000') |