mirror of
https://github.com/espressif/openthread.git
synced 2026-08-19 00:49:53 +00:00
Remove exit() call, it is no longer needed by the test scripts. (#73)
This commit is contained in:
@@ -70,7 +70,6 @@ const struct Command Interpreter::sCommands[] =
|
||||
{ "route", &ProcessRoute },
|
||||
{ "routerupgradethreshold", &ProcessRouterUpgradeThreshold },
|
||||
{ "scan", &ProcessScan },
|
||||
{ "shutdown", &ProcessShutdown },
|
||||
{ "start", &ProcessStart },
|
||||
{ "state", &ProcessState },
|
||||
{ "stop", &ProcessStop },
|
||||
@@ -915,14 +914,6 @@ exit:
|
||||
sServer->Output(sResponse.GetResponse(), sResponse.GetResponseLength());
|
||||
}
|
||||
|
||||
void Interpreter::ProcessShutdown(int argc, char *argv[])
|
||||
{
|
||||
AppendResult(kThreadError_None);
|
||||
sServer->Output(sResponse.GetResponse(), sResponse.GetResponseLength());
|
||||
otPlatSerialDisable();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
void Interpreter::ProcessStart(int argc, char *argv[])
|
||||
{
|
||||
ThreadError error = kThreadError_None;
|
||||
|
||||
@@ -162,7 +162,6 @@ private:
|
||||
static void ProcessRouterUpgradeThreshold(int argc, char *argv[]);
|
||||
static void ProcessRloc16(int argc, char *argv[]);
|
||||
static void ProcessScan(int argc, char *argv[]);
|
||||
static void ProcessShutdown(int argc, char *argv[]);
|
||||
static void ProcessStart(int argc, char *argv[]);
|
||||
static void ProcessState(int argc, char *argv[]);
|
||||
static void ProcessStop(int argc, char *argv[]);
|
||||
|
||||
@@ -69,10 +69,6 @@ class Node:
|
||||
self.pexpect = fdpexpect.fdspawn(os.open(serialPort, os.O_RDWR|os.O_NONBLOCK|os.O_NOCTTY))
|
||||
|
||||
def __del__(self):
|
||||
if self.node_type == 'sim':
|
||||
self.send_command('shutdown')
|
||||
self.pexpect.expect('Done')
|
||||
|
||||
self.pexpect.terminate()
|
||||
self.pexpect.close(force=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user