Skip to content

Commit

Permalink
fixup! fixup! fixup! REMOVEME: just testing
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKevinWeiss committed Aug 2, 2023
1 parent 90aa568 commit 0c03ba5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/net/gcoap_fileserver/tests/01-run.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,13 @@ def test_linear_topology(factory, zep_dispatch):
assert A.cmd("md5sum /const/song.txt").split()[2] == B.cmd("md5sum /nvm0/song.txt").split()[2]

# upload the file to node B (only one node should write MEMORY.bin)
print(A.cmd("ncput /const/song.txt coap://[" + global_addr(B.cmd("ifconfig 7"))[1] + "]/vfs/song2.txt", timeout=60))
msg = "ncput /const/song.txt coap://[" + global_addr(B.cmd("ifconfig 7"))[1] + "]/vfs/song2.txt"
print(A.cmd(msg, timeout=60))
print(B.cmd("md5sum /nvm0/song.txt"))
print(B.cmd("md5sum /nvm0/song2.txt"))
# make sure the content matches
assert B.cmd("md5sum /nvm0/song.txt").split()[2] == B.cmd("md5sum /nvm0/song2.txt").split()[2]
#

# clean up after run
B.cmd("vfs rm /nvm0/song.txt")
B.cmd("vfs rm /nvm0/song2.txt")
Expand Down

0 comments on commit 0c03ba5

Please sign in to comment.