fixed subprocess execution and redirect. now supports curses, ssh clients, and more.

This commit is contained in:
Phanes
2017-12-02 22:01:09 -05:00
parent 6fd80a31c5
commit c92be3f4be
3 changed files with 13 additions and 136 deletions

View File

@@ -114,17 +114,17 @@ void Plan::load_definitions( Suite unit_definitions, bool verbose )
void Plan::execute( bool verbose )
{
// for each task in this plan
// for ( int i = 0; i < this->tasks.size(); i++ )
// {
// if ( verbose ) {
// std::cout << "Executing task \"" << this->tasks[i].get_name() << "\"." << std::endl;
std::cout << "Executing task \"" << this->tasks[0].get_name() << "\"." << std::endl;
// }
// this->tasks[i].execute( verbose );
this->tasks[0].execute( verbose );
for ( int i = 0; i < this->tasks.size(); i++ )
{
if ( verbose ) {
std::cout << "Executing task \"" << this->tasks[i].get_name() << "\"." << std::endl;
// std::cout << "Executing task \"" << this->tasks[0].get_name() << "\"." << std::endl;
}
this->tasks[i].execute( verbose );
// this->tasks[0].execute( verbose );
// for testing a logic issue in Task.execute(), remove when done
// throw Plan_InvalidTaskIndex();
// }
}
}