context: new '--test-no-auto-scan' to avoid automatic scanning for devices

This commit is contained in:
Aleksander Morgado
2013-11-22 11:54:30 +01:00
parent bf57da537d
commit 243720414e
6 changed files with 45 additions and 3 deletions

View File

@@ -62,7 +62,9 @@ bus_acquired_cb (GDBusConnection *connection,
/* Create Manager object */
g_assert (!manager);
manager = mm_manager_new (connection, &error);
manager = mm_manager_new (connection,
!mm_context_get_test_no_auto_scan (),
&error);
if (!manager) {
mm_warn ("Could not create manager: %s", error->message);
g_error_free (error);