\r
if(context->command_line)\r
{\r
+ #ifdef WIN32\r
+ if(!context->is_not_found)\r
+ {\r
+ #endif\r
if(fstream_launch_command(fstream, context, mutex) < 0)\r
break;\r
+\r
+ #ifdef WIN32\r
+ }\r
+ #endif\r
}\r
\r
continue;\r
/* Check that last command of the file ran well */\r
if(context->command_line)\r
{\r
+ #ifdef WIN32\r
+ if(!context->is_not_found)\r
+ {\r
+ #endif\r
+\r
if(fstream_launch_command(fstream, context, mutex) < 0)\r
return -1;\r
+\r
+ #ifdef WIN32\r
+ }\r
+ #endif\r
}\r
\r
/* clear buffers */\r
\r
}\r
\r
- p = line2 + 2;\r
- \r
- while(p && 1)\r
+ while(1)\r
{\r
+ p = line2 + (line2[0] =='<' ? 4 : 2);\r
+ \r
if((p = strchr(p, '$')))\r
{\r
if(*(p+1) != ' ')\r
\r
if(!is_w32_cmd(command_line, fstream->unit->runner->path) && getpath(command_line, &path) < 0)\r
{\r
+ command_t command;\r
+\r
ERROR3("[%s] `%s' : NOK (%s)", filepos, command_line, error_to_string(ECMDNOTFOUND, 1));\r
unit_set_error(fstream->unit, ECMDNOTFOUND, 1, filepos);\r
+\r
+ context->is_not_found = 1;\r
+ \r
+ command = command_new(fstream->unit, context, mutex);\r
+\r
+ command->status = cs_failed;\r
+ command->reason = csr_command_not_found;\r
+\r
failure(unit);\r
+ \r
+ \r
return;\r
}\r
\r