Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add an option to tesh : --cfg
[simgrid.git] / tools / tesh / run_context.c
index 181b688..b593904 100644 (file)
@@ -302,6 +302,9 @@ void rctx_pushline(const char *filepos, char kind, char *line)
 
     rctx->cmd = xbt_strdup(line);
     rctx->filepos = xbt_strdup(filepos);
+    if(option){
+       rctx->cmd = bprintf("%s %s",rctx->cmd,option);
+    }
     INFO3("[%s] %s%s", filepos, rctx->cmd,
           ((rctx->is_background) ? " (background command)" : ""));