This commit is contained in:
lnk
2026-01-06 16:25:08 +08:00
parent a71735b983
commit be068fab40
2 changed files with 15 additions and 9 deletions

View File

@@ -319,11 +319,11 @@ extern bool normalOutputEnabled;
showinshellflag = true;
handleViewLogCommand(cmd, clientFD);
} else if (cmd.find("G_TEST_NUM=") == 0) {
int num = std::atoi(cmd.substr(9).c_str());
int num = std::atoi(cmd.substr(11).c_str());
setTestNum(num);
sendStr(clientFD, "\r\x1B[KTEST_NUM updated\r\n");
} else if (cmd.find("G_TEST_TYPE=") == 0) {
int type = std::atoi(cmd.substr(10).c_str());
int type = std::atoi(cmd.substr(12).c_str());
setTestType(type);
sendStr(clientFD, "\r\x1B[KTEST_TYPE updated\r\n");
} else if (cmd.find("LOG=") == 0) {