This commit is contained in:
2023-12-03 22:11:15 +03:00
parent 7ac88bc689
commit 2b0f534f5d
3 changed files with 41 additions and 5 deletions

View File

@@ -93,4 +93,18 @@ public:
printf("START %ld: %s\n", id, res.getCharArray());
return res;
}
virtual void copyResults(const String& pathRes) {
String resultPath(packageWorkspace + "/" + pathRes + "/" + getId());
Utils::Mkdir(resultPath);
Utils::Copy(workspace + "/out.txt", resultPath + "/out.txt");
Utils::Copy(workspace + "/err.txt", resultPath + "/err.txt");
if (Utils::Exists(workspace + "/sts.gz+")) {
String dvm_start = String::DQuotes(dvm_drv) + " pa " + String::DQuotes(String(getId()) + "/sts.gz+") + " " + String::DQuotes(resultPath + "/statistic.txt");
system(dvm_start.getCharArray());
}
}
};