Skip to content

Commit 8dd774c

Browse files
committed
Use uncompressed trace
1 parent dceb8dd commit 8dd774c

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

.github/workflows/ci.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ jobs:
7676
protoc --version
7777
osivalidator --help
7878
79-
- name: Test lzma decompression and compression
79+
- name: Test lzma compression and decompression
8080
shell: bash
8181
run: |
82-
lzma -d data/small_test.txt.lzma
8382
lzma -z data/small_test.txt
83+
lzma -d data/small_test.txt.lzma
8484
8585
- name: Run tests
8686
shell: bash
@@ -93,7 +93,6 @@ jobs:
9393
- name: Run validator with different options
9494
shell: bash
9595
run: |
96-
lzma -d data/small_test.txt.lzma
9796
python open-simulation-interface/format/txt2osi.py -d data/small_test.txt
9897
9998
osivalidator data/small_test.osi

data/small_test.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:b9b7c2acd6ac3a3d222bda3bea7615e9dfd67c7e4b2d36c80034043417ac8a62
3+
size 6180

data/small_test.txt.lzma

-3
This file was deleted.

tests/test_trace.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ def setUp(self):
1616
self.osi_nobuffer = OSITrace(buffer_size=0)
1717

1818
self.txt.from_file(
19-
path="data/small_test.txt.lzma",
19+
path="data/small_test.txt",
2020
type_name="SensorView",
2121
)
22-
subprocess.call(["lzma", "-d", "data/small_test.txt.lzma"])
2322
subprocess.call(
2423
[
2524
"python3",
@@ -47,6 +46,7 @@ def tearDown(self):
4746

4847
subprocess.call(["rm", "data/small_test.osi.lzma"])
4948
subprocess.call(["rm", "data/small_test.osi"])
49+
subprocess.call(["lzma", "-d", "data/small_test.txt.lzma"])
5050

5151
def test_get_messages_in_index_range(self):
5252
"""Test getting messages in range"""

0 commit comments

Comments
 (0)