Skip to content

Commit

Permalink
Clean up temp .out files after execution
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar committed Nov 5, 2016
1 parent 01a0d68 commit adb9e8d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions include/tcframe/runner/Runner.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,14 @@ class Runner {
Config config = parseConfig(argv[0]);
Spec spec = buildSpec(config, runnerLogger);

int result;
if (args.command() == Args::Command::GEN) {
return generate(args, spec);
result = generate(args, spec);
} else {
return submit(args, spec);
result = submit(args, spec);
}
cleanUp();
return result;
} catch (...) {
return 1;
}
Expand Down Expand Up @@ -157,6 +160,10 @@ class Runner {
submitter->submit(spec.testSuite(), subtaskIds, submitterConfig);
return 0;
}

void cleanUp() {
os_->execute(ExecutionRequestBuilder().setCommand("rm _*.out").build());
}
};

}

0 comments on commit adb9e8d

Please sign in to comment.