- More work on DAGLoggers
- Still need unit tests for the FilesystemLogger
This commit is contained in:
1 parent
4d519cc596
commit
9f90f54b67
13 files changed
+221
-54
No files matched your search
@@ -14,8 +14,8 @@ TEST_CASE("Basic Execution", "[forking_executor]") {
|
||||
auto rec = ex.runCommand(cmd);
|
||||
|
||||
REQUIRE(rec.rc == 0);
|
||||
REQUIRE(rec.output == "abc 123\n");
|
||||
REQUIRE(rec.error.empty());
|
||||
REQUIRE(rec.outputLog == "abc 123\n");
|
||||
REQUIRE(rec.errorLog.empty());
|
||||
}
|
||||
|
||||
SECTION("Error Run") {
|
||||
@@ -24,8 +24,8 @@ TEST_CASE("Basic Execution", "[forking_executor]") {
|
||||
auto rec = ex.runCommand(cmd);
|
||||
|
||||
REQUIRE(rec.rc == 2);
|
||||
REQUIRE(rec.error == "/usr/bin/expr: syntax error: missing argument after ‘+’\n");
|
||||
REQUIRE(rec.output.empty());
|
||||
REQUIRE(rec.errorLog == "/usr/bin/expr: syntax error: missing argument after ‘+’\n");
|
||||
REQUIRE(rec.outputLog.empty());
|
||||
}
|
||||
|
||||
SECTION("Large Output") {
|
||||
@@ -41,8 +41,8 @@ TEST_CASE("Basic Execution", "[forking_executor]") {
|
||||
auto rec = ex.runCommand(cmd);
|
||||
|
||||
REQUIRE(rec.rc == 0);
|
||||
REQUIRE(rec.output.size() == std::filesystem::file_size(bigFile));
|
||||
REQUIRE(rec.error.empty());
|
||||
REQUIRE(rec.outputLog.size() == std::filesystem::file_size(bigFile));
|
||||
REQUIRE(rec.errorLog.empty());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user