From 4d0579aa1519da9630b6128cea341c34e740efcf Mon Sep 17 00:00:00 2001 From: Daniel Zaoui Date: Thu, 7 Jun 2018 12:45:39 +0300 Subject: [PATCH] Fix command preparation in simulation mode The sentinel was forgotten, leading to issues when launching the application --- src/bin/exactness.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/bin/exactness.c b/src/bin/exactness.c index 5323046..b557a4e 100644 --- a/src/bin/exactness.c +++ b/src/bin/exactness.c @@ -237,17 +237,18 @@ ok: if (is_exu) { if (_mode == RUN_PLAY) - eina_strbuf_append_printf(sbuf, "-o '%s/%s/%s.exu' -- ", _dest_dir, CURRENT_SUBDIR, ent->name); + eina_strbuf_append_printf(sbuf, "-o '%s/%s/%s.exu' ", _dest_dir, CURRENT_SUBDIR, ent->name); if (_mode == RUN_INIT) - eina_strbuf_append_printf(sbuf, "-o '%s/%s.exu' -- ", _dest_dir, ent->name); + eina_strbuf_append_printf(sbuf, "-o '%s' ", scn_path); } else { if (_mode == RUN_PLAY) - eina_strbuf_append_printf(sbuf, "-o '%s/%s' -- ", _dest_dir, CURRENT_SUBDIR); + eina_strbuf_append_printf(sbuf, "-o '%s/%s' ", _dest_dir, CURRENT_SUBDIR); if (_mode == RUN_INIT) - eina_strbuf_append_printf(sbuf, "-o '%s/%s' -- ", _dest_dir, ORIG_SUBDIR); + eina_strbuf_append_printf(sbuf, "-o '%s/%s' ", _dest_dir, ORIG_SUBDIR); } + eina_strbuf_append(sbuf, "-- "); eina_strbuf_append(sbuf, ent->command); strncpy(buf, eina_strbuf_string_get(sbuf), SCHEDULER_CMD_SIZE-1); eina_strbuf_free(sbuf);