mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 06:30:08 +01:00
nmtst: detect whether the test runs as tap test
Same as gtestutils does, look for --tap command line argument.
(cherry picked from commit c8174f0f9f)
This commit is contained in:
parent
c3aafd9dab
commit
8bdb2aaeea
1 changed files with 3 additions and 0 deletions
|
|
@ -142,6 +142,7 @@ struct __nmtst_internal
|
|||
gboolean assert_logging;
|
||||
gboolean no_expect_message;
|
||||
gboolean test_quick;
|
||||
gboolean test_tap_log;
|
||||
char *sudo_cmd;
|
||||
char **orig_argv;
|
||||
};
|
||||
|
|
@ -347,6 +348,8 @@ __nmtst_init (int *argc, char ***argv, gboolean assert_logging, const char *log_
|
|||
|| !strcmp (*(a+1), "slow")
|
||||
|| !strcmp (*(a+1), "thorough"))))
|
||||
test_quick_argv = TRUE;
|
||||
else if (strcmp (*a, "--tap") == 0)
|
||||
__nmtst_internal.test_tap_log = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue