example: Fix spiffsgen example test

Regression in 66fb5a29bbdc2482d67c52e6f66b303378c9b789 - whitespace cleanup
added trailing newline (\n) to the end of the file, which is printed as \r\n by
IDF printf, so the 'expect' fails to see it.
This commit is contained in:
Angus Gratton 2020-11-17 18:01:49 +11:00 committed by bot
parent bed20c84d7
commit 29315213a8

View File

@ -15,7 +15,7 @@ def test_examples_spiffsgen(env, extra_data):
# Expect hello.txt is read successfully
with open(os.path.join(base_dir, 'hello.txt'), 'r') as hello_txt:
dut.expect('Read from hello.txt: ' + hello_txt.read())
dut.expect('Read from hello.txt: ' + hello_txt.read().rstrip())
# Expect alice.txt MD5 hash is computed accurately
with open(os.path.join(base_dir, 'sub', 'alice.txt'), 'rb') as alice_txt: