mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
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:
parent
bed20c84d7
commit
29315213a8
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user