Skip to content

Commit 4a79796

Browse files
committed
test: Update kprint test to not look for truncation
1 parent 864d7cf commit 4a79796

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • test/kernel/integration/kprint

test/kernel/integration/kprint/test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ def check_truncation(line):
2929

3030
print "Received truncated string: ", line, "of size", len(line), "(format size * ", len(line)/format_string_size,")"
3131
assert(len(line) <= format_string_size * 2)
32-
assert(line.strip().split(" ")[-1] != "END")
32+
# truncated outputs are unacceptable :)
33+
assert(line.strip().split(" ")[-1] == "END")
3334

3435
vm.on_output("I can print hex", check_hex)
3536
vm.on_output("String", set_format_string_size)

0 commit comments

Comments
 (0)