summaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-03-14 14:23:30 +0100
committerThomas Haller <thaller@redhat.com>2016-03-15 12:56:57 +0100
commitb5c8d496c25f9de93c7839082403dab1249f0d4c (patch)
tree1496af97fae5fb1631d7107d69f0da180d56040d /shared
parentd6c399b1dd38d6f85fee1f255e7c49b7cdc53859 (diff)
downloadNetworkManager-b5c8d496c25f9de93c7839082403dab1249f0d4c.tar.gz
nmtst: add NMTST_DEBUG option "D"
Diffstat (limited to 'shared')
-rw-r--r--shared/nm-test-utils.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/shared/nm-test-utils.h b/shared/nm-test-utils.h
index 6e705dce5c..a7d0f93cda 100644
--- a/shared/nm-test-utils.h
+++ b/shared/nm-test-utils.h
@@ -71,6 +71,8 @@
*
* "TRACE", this is shorthand for "log-level=TRACE".
*
+ * "D", this is shorthand for "log-level=TRACE,no-expect-message".
+ *
* "sudo-cmd=PATH": when running root tests as normal user, the test will execute
* itself by invoking sudo at PATH.
* For example
@@ -341,9 +343,14 @@ __nmtst_init (int *argc, char ***argv, gboolean assert_logging, const char *log_
} else if (!g_ascii_strncasecmp (debug, "log-level=", strlen ("log-level="))) {
g_free (c_log_level);
log_level = c_log_level = g_strdup (&debug[strlen ("log-level=")]);
+ } else if (!g_ascii_strcasecmp (debug, "D")) {
+ /* shorthand for "log-level=TRACE,no-expect-message" */
+ g_free (c_log_level);
+ log_level = c_log_level = g_strdup ("TRACE");
+ no_expect_message = TRUE;
} else if (!g_ascii_strcasecmp (debug, "TRACE")) {
g_free (c_log_level);
- log_level = c_log_level = g_strdup (debug);
+ log_level = c_log_level = g_strdup ("TRACE");
} else if (!g_ascii_strncasecmp (debug, "log-domains=", strlen ("log-domains="))) {
g_free (c_log_domains);
log_domains = c_log_domains = g_strdup (&debug[strlen ("log-domains=")]);