diff --git a/src/Sproc/Sproc.cpp b/src/Sproc/Sproc.cpp index 18a2e74..ac995e8 100644 --- a/src/Sproc/Sproc.cpp +++ b/src/Sproc/Sproc.cpp @@ -233,13 +233,14 @@ int Sproc::execute(std::string shell, std::string environment_file, std::string std::string sourcer = ". " + environment_file + " && " + command; // Show the user a debug print of what is going to be executed in the shell. - slog.log(E_DEBUG, "[ '" + task_name + "' ] Shell call for loading: ``" + sourcer + "``."); + slog.log(E_INFO, "[ '" + task_name + "' ] Shell call for loading: ``" + sourcer + "``."); // file descriptors for parent/child i/o int child_stdout_pipe[2]; int child_stderr_pipe[2]; - slog.log( E_DEBUG, "[ '" + task_name + "' ] STDIN/STDOUT/STDERR file descriptors created." ); + // no longer really needed, but may be handy for more verbosity settings later + //slog.log( E_DEBUG, "[ '" + task_name + "' ] STDIN/STDOUT/STDERR file descriptors created." ); // man 3 pipe if (pipe(child_stdout_pipe) == -1 ) { @@ -279,7 +280,7 @@ int Sproc::execute(std::string shell, std::string environment_file, std::string // fork a process pid_t pid = fork(); - slog.log( E_DEBUG, "[ '" + task_name + "' ] Process forked. Reporting. (PID: " + std::to_string(pid) + ")" ); + //slog.log( E_DEBUG, "[ '" + task_name + "' ] Process forked. Reporting. (PID: " + std::to_string(pid) + ")" ); switch ( pid ) { case FORK_STATES::FORK_FAILURE: @@ -304,7 +305,7 @@ int Sproc::execute(std::string shell, std::string environment_file, std::string close( child_stderr_pipe[READ_END] ); slog.log(E_INFO, "[ '" + task_name + "' ] TEE Logging enabled."); - slog.log(E_DEBUG, "[ '" + task_name + "' ] DUP2: child_*_pipe[1]->STD*_FILENO"); + //slog.log(E_DEBUG, "[ '" + task_name + "' ] DUP2: child_*_pipe[1]->STD*_FILENO"); // set identity context // set gid and uid diff --git a/test/plans/atomic.plan b/test/plans/atomic.plan index 951198e..0523995 100644 --- a/test/plans/atomic.plan +++ b/test/plans/atomic.plan @@ -1,5 +1,6 @@ { "plan": [ - { "name": "independent test 1", "dependencies": [ null ] } + { "name": "independent test 1", "dependencies": [ null ] }, + { "name": "independent test 2", "dependencies": [ null ] } ] } diff --git a/test/units/all_test.units b/test/units/all_test.units index 0779aa4..a332832 100644 --- a/test/units/all_test.units +++ b/test/units/all_test.units @@ -23,7 +23,7 @@ "user": "bagira", "group": "bagira", "rectify": false, - "shell": "/usr/bin/env bash", + "shell": "/usr/bin/bash", "environment": "environments/rex.variables" }, {