[core] add the instance id (#9055)

It is difficult for testers to know whether the stack has been
automatically restarted in the background. This commit adds an
instance id to indicate whether the stack has been restarted.
The instance id is set to a random value when the OpenThread
instance is constructed and its value will not change after
initialization.
This commit is contained in:
Zhanglong Xia
2023-05-18 15:40:45 -07:00
committed by GitHub
parent b420a860ab
commit 853f6eab0b
7 changed files with 67 additions and 1 deletions
+4
View File
@@ -86,6 +86,10 @@ send "ifconfig\n"
expect "up"
expect_line "Done"
send "instanceid\n"
expect -re {\d+}
expect_line "Done"
send "ipaddr add ::\n"
expect_line "Done"
send "ipaddr del ::\n"