fixed and improved

This commit is contained in:
2023-12-05 16:03:42 +03:00
parent 0bd2d3fe36
commit 5e229fcb68
5 changed files with 34 additions and 20 deletions

View File

@@ -11,7 +11,7 @@ class RunTask : public Task {
String args;
CompilationTask* parent;
public:
virtual void print() const {
void print() const override {
printf("id=%ld; maxtime=%d; testcompilationtask_id=%ld; matrix=%s; environments=%s; usr_par=%s; args=%s kernels=%d\n",
id,
maxtime,
@@ -60,7 +60,7 @@ public:
setKernels(lines->get(offset + 7));
}
virtual String getLaunchScriptText() {
String getLaunchScriptText() override {
String modules = userWorkspace + "/modules";
String starterCall = modules + "/starter";
String launcherCall = modules + "/launcher";
@@ -77,7 +77,8 @@ public:
String::DQuotes("killall -SIGKILL " + binary_name) + " " +
dvm_start;
}
virtual void prepareWorkspace() {
void prepareWorkspace() override {
String binary_src = parent->getWorkspace() + "/0";
String binary_dst = workspace + "/" + binary_name;
Utils::Copy(binary_src, binary_dst);
@@ -86,14 +87,16 @@ public:
File parFile = File(parPath, usr_par);
}
}
virtual String getStartCommand() {
String getStartCommand() override {
String res = workspace + "/run";
if (!environments.isEmpty())
res = environments + " " + res;
printf("START %ld: %s\n", id, res.getCharArray());
return res;
}
virtual String copyResults(const String& pathRes) {
String copyResults(const String& pathRes) override {
String resultPath = Task::copyResults(pathRes);
if (Utils::Exists(workspace + "/sts.gz+")) {
String stsPath(resultPath + "/statistic.txt");