Skip to content

Commit aaa9f3e

Browse files
committed
updated bin formatter test
1 parent a67cab2 commit aaa9f3e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

python_test/test_bin_formatter.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,33 @@
99
"input_name, metadata_input_name, bin_version, bin_data, cmake_data, expected_name, expected_header, expect_data",
1010
[
1111
(
12-
"test1.bin",
12+
"OBC-firmware.bin",
1313
"OBC-metadata.bin",
1414
0,
1515
b"0123456789",
16-
# Simulate what the contents of the metadata.bin file would be as generated from top level CMake file
16+
# Simulate what the contents of the metadata bin file would be as generated from top level CMake file
1717
b"1\n",
18-
"test1_formatted.bin",
18+
"OBC-firmware_formatted.bin",
1919
b"\x00\x00\x00\x00\n\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00",
2020
b"0123456789",
2121
), # \n has ASCII value of 10 so struct.pack uses \n
2222
(
23-
"test2.bin",
23+
"OBC-firmware.bin",
2424
"OBC-metadata.bin",
2525
2,
2626
b"10987",
2727
b"2\n",
28-
"test2_formatted.bin",
28+
"OBC-firmware_formatted.bin",
2929
b"\x02\x00\x00\x00\x05\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00",
3030
b"10987",
3131
),
3232
(
33-
"test3.bin",
33+
"OBC-firmware.bin",
3434
"OBC-metadata.bin",
3535
3,
3636
b"1",
3737
b"0\n",
38-
"test3_formatted.bin",
38+
"OBC-firmware_formatted.bin",
3939
b"\x03\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00",
4040
b"1",
4141
),

0 commit comments

Comments
 (0)