mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 12:44:33 +02:00
example: Fix spiffsgen example test
Regression in 66fb5a29bb
- 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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user