[gnome-builder] app: more reliable tests mode check



commit b725ec83a6f152b7d17296858887acb5354a176d
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jun 19 17:23:25 2017 -0700

    app: more reliable tests mode check
    
    With meson, we won't necessarily get as reliable of a test name due to
    how tests are run.

 libide/application/ide-application-command-line.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/application/ide-application-command-line.c 
b/libide/application/ide-application-command-line.c
index 6d37bca..d134e57 100644
--- a/libide/application/ide-application-command-line.c
+++ b/libide/application/ide-application-command-line.c
@@ -305,7 +305,7 @@ ide_application_local_command_line (GApplication   *application,
     {
       self->mode = IDE_APPLICATION_MODE_WORKER;
     }
-  else if (g_str_has_prefix (prgname, "test-"))
+  else if (strstr (prgname, "test-") != NULL)
     {
       self->mode = IDE_APPLICATION_MODE_TESTS;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]