- Adjusting tests so they run without referencing /tmp
This commit is contained in:
@@ -9,7 +9,7 @@ TEST_CASE("Basic Execution", "[forking_executor]") {
|
||||
daggy::executors::task::ForkingTaskExecutor ex(10);
|
||||
|
||||
SECTION("Simple Run") {
|
||||
daggy::Task task{.command{"/usr/bin/echo", "abc", "123"}};
|
||||
daggy::Task task{.command{"/bin/echo", "abc", "123"}};
|
||||
|
||||
auto rec = ex.runCommand(task);
|
||||
|
||||
@@ -24,7 +24,7 @@ TEST_CASE("Basic Execution", "[forking_executor]") {
|
||||
auto rec = ex.runCommand(task);
|
||||
|
||||
REQUIRE(rec.rc == 2);
|
||||
REQUIRE(rec.errorLog == "/usr/bin/expr: syntax error: missing argument after ‘+’\n");
|
||||
REQUIRE(rec.errorLog.find("syntax error:") != std::string::npos);
|
||||
REQUIRE(rec.outputLog.empty());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user