Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
log0div0 committed Jun 5, 2021
1 parent cb09d9d commit 7843dc9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/testo/IR/Program.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void ProgramConfig::dump(nlohmann::json& j) const {
VisitorSemanticConfig::dump(j);
VisitorInterpreterConfig::dump(j);

j["target"] = fs::canonical(target);
j["target"] = target;
j["test_name_filters"] = test_name_filters;
auto params = nlohmann::json::object();
for (size_t i = 0; i < params_names.size(); ++i) {
Expand Down
12 changes: 7 additions & 5 deletions src/testo/Reporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ void ReporterConfig::validate() const {
}

void ReporterConfig::dump(nlohmann::json& j) const {
if (!report_folder.empty()) {
j["report_folder"] = fs::canonical(report_folder);
}
j["report_folder"] = report_folder;
j["html"] = html;
}

Expand Down Expand Up @@ -56,11 +54,15 @@ void Reporter::init(const std::vector<std::shared_ptr<IR::TestRun>>& _tests_runs
}

for (auto test_run: _tests_runs) {
test_run->test->report(report_folder / "tests");
if (!report_folder.empty()) {
test_run->test->report(report_folder / "tests");
}
tests_runs.push_back(test_run);
}
for (auto test: _up_to_date_tests) {
test->report(report_folder / "tests");
if (!report_folder.empty()) {
test->report(report_folder / "tests");
}
up_to_date_tests.push_back(test);
}

Expand Down

0 comments on commit 7843dc9

Please sign in to comment.