[test] add expect tests for dataset and networktime (#5145)

This commit is contained in:
Moandor
2020-06-24 12:48:03 -07:00
committed by GitHub
parent 6e80c8b058
commit 1cd9bb3074
3 changed files with 171 additions and 1 deletions
+10
View File
@@ -146,4 +146,14 @@ expect "0:0:0:0::/64 s low"
send "route remove ::/64\n"
expect "Done"
send "networktime 20 200\n"
expect "Done"
send "networktime\n"
expect -re {Network Time: \d+us \((unsynchronized|resync needed|synchronized)\)}
expect "Time Sync Period: 20s"
expect "XTAL Threshold: 200ppm"
expect "Done"
send "networktime something_invalid\n"
expect "Error 7: InvalidArgs"
dispose_nodes