fixed typo in verbose output
							parent
							
								
									1fe0defc7b
								
							
						
					
					
						commit
						27257f98e1
					
				|  | @ -1,6 +1,7 @@ | ||||||
| { | { | ||||||
|   "plan": [ |   "plan": [ | ||||||
|     { "name": "independent test", "dependencies":  [ null ] }, |     { "name": "independent test 1", "dependencies":  [ null ] }, | ||||||
|     { "name": "dependent test", "dependencies":  [ "independent test", null, null ] } |     { "name": "independent test 2", "dependencies":  [ null ] }, | ||||||
|  |     { "name": "dependent test", "dependencies":  [ "independent test 1", null, null ] } | ||||||
|   ] |   ] | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -51,7 +51,7 @@ void Suite::load_units_file( std::string filename, bool verbose ) | ||||||
|         // append to this->units
 |         // append to this->units
 | ||||||
|         this->units.push_back( tmp_U ); |         this->units.push_back( tmp_U ); | ||||||
|         if ( verbose ) { |         if ( verbose ) { | ||||||
|             std::cout << "Added unit " << tmp_U.get_name() << " to Suite." << std::endl; |             std::cout << "Added unit \"" << tmp_U.get_name() << "\" to Suite." << std::endl; | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -11,8 +11,8 @@ Task::Task() {} | ||||||
| 
 | 
 | ||||||
| /// Task::load_root() - loads json values to private members
 | /// Task::load_root() - loads json values to private members
 | ||||||
| ///
 | ///
 | ||||||
| /// \param loader_root
 | /// \param loader_root - the Json::Value to populate from.
 | ||||||
| /// \return
 | /// \param verbose - Whether to print verbose information to STDOUT.
 | ||||||
| void Task::load_root(Json::Value loader_root, bool verbose ) | void Task::load_root(Json::Value loader_root, bool verbose ) | ||||||
| { | { | ||||||
|     if ( loader_root.isMember("name") ) |     if ( loader_root.isMember("name") ) | ||||||
|  | @ -33,12 +33,10 @@ void Task::load_root(Json::Value loader_root, bool verbose ) | ||||||
|         { |         { | ||||||
|             this->dependencies.push_back( des_dep_root[i].asString() ); |             this->dependencies.push_back( des_dep_root[i].asString() ); | ||||||
|             if ( verbose ) { |             if ( verbose ) { | ||||||
|                 std::cout << "Added dependency \"" << des_dep_root[i].asString() << "\" to Task \"" << this->get_name() << "\"." << std::endl; |                 std::cout << "Added dependency \"" << des_dep_root[i].asString() << "\" to task \"" << this->get_name() << "\"." << std::endl; | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| 
 |  | ||||||
|     //this->has_succeeded = false;
 |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| std::string Task::get_name() | std::string Task::get_name() | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Chris Punches
						Chris Punches