From 33730b5dcda6d4095d4d9bb42a2950f674e32d59 Mon Sep 17 00:00:00 2001 From: Daniel Zaoui Date: Mon, 10 Oct 2016 10:42:23 +0300 Subject: [PATCH] Destination directory is not needed during simulation Shots are not needed in this mode too. --- src/bin/run_test.c | 3 +-- src/lib/tsuite_hook_player.c | 7 +++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/bin/run_test.c b/src/bin/run_test.c index 1a3d6a6..6e4f1d6 100644 --- a/src/bin/run_test.c +++ b/src/bin/run_test.c @@ -31,8 +31,6 @@ _run_command_prepare(const List_Entry *ent, Run_Mode mode, char *buf) { case RUN_SIMULATION: { - eina_strbuf_append_printf(sbuf, "TSUITE_DEST_DIR='%s' ", - exactness_config.dest_dir); break; } case RUN_PLAY: @@ -55,6 +53,7 @@ _run_command_prepare(const List_Entry *ent, Run_Mode mode, char *buf) exactness_config.dest_dir); break; } + default: break; } eina_strbuf_append_printf(sbuf, "LD_PRELOAD='%s/exactness/libexactness_%s.so' %s %s %s", PACKAGE_LIBDIR, mode == RUN_RECORD ? "recorder" : "player", diff --git a/src/lib/tsuite_hook_player.c b/src/lib/tsuite_hook_player.c index 5524dff..e5dcc92 100644 --- a/src/lib/tsuite_hook_player.c +++ b/src/lib/tsuite_hook_player.c @@ -459,8 +459,11 @@ tsuite_feed_event(void *data) printf("%s take shot timestamp=<%u> t->n_evas=<%d>\n", __func__, t->timestamp, t->n_evas); #endif if (rect) evas_object_color_set(rect, 0, 0, 255, 255); - _shot_do(NULL, - eina_list_nth(evas_list, t->n_evas)); /* Serial name based on test-name */ + if (_hook_setting->dest_dir) + { + _shot_do(NULL, + eina_list_nth(evas_list, t->n_evas)); /* Serial name based on test-name */ + } break; } default: /* All non-input events are not handeled */