1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-07-24 09:25:33 +02:00

script: use consistent name for mute jami dring option

Change-Id: I7e3db31838884bc585d981ced91b4294cd5a8c14
This commit is contained in:
Ming Rui Zhang 2021-06-30 10:01:17 -04:00
parent 32a8978ff1
commit 9200818a50
3 changed files with 7 additions and 7 deletions

View file

@ -303,8 +303,8 @@ def run_tests(mute_jamid, output_to_files):
test_exe_command_list = [qml_test_exe, unit_test_exe]
if mute_jamid:
test_exe_command_list[0] += ' -mutejami'
test_exe_command_list[1] += ' -mutejami'
test_exe_command_list[0] += ' -mutejamid'
test_exe_command_list[1] += ' -mutejamid'
if output_to_files:
test_exe_command_list[0] += ' -o ' + this_dir + '\\x64\\test\\qml_tests.txt'
test_exe_command_list[1] += ' > ' + this_dir + '\\x64\\test\\unittests.txt'
@ -359,7 +359,7 @@ def parse_args():
run_test = subparser.add_parser('runtests')
run_test.add_argument(
'-md', '--mutejami', action='store_true', default=False,
'-md', '--mutejamid', action='store_true', default=False,
help='Avoid jamid logs')
run_test.add_argument(
'-o', '--outputtofiles', action='store_true', default=False,

View file

@ -182,10 +182,10 @@ main(int argc, char** argv)
{
bool muteDring {false};
// Remove "-mutejami" from argv, as quick_test_main_with_setup() will
// Remove "-mutejamid" from argv, as quick_test_main_with_setup() will
// fail if given an invalid command-line argument.
auto end = std::remove_if(argv + 1, argv + argc, [](char* argv) {
return (strcmp(argv, "-mutejami") == 0);
return (strcmp(argv, "-mutejamid") == 0);
});
if (end != argv + argc) {

View file

@ -27,10 +27,10 @@ TestEnvironment globalEnv;
int
main(int argc, char* argv[])
{
// Remove "-mutejami" from argv, as quick_test_main_with_setup() will
// Remove "-mutejamid" from argv, as quick_test_main_with_setup() will
// fail if given an invalid command-line argument.
auto end = std::remove_if(argv + 1, argv + argc, [](char* argv) {
return (strcmp(argv, "-mutejami") == 0);
return (strcmp(argv, "-mutejamid") == 0);
});
if (end != argv + argc) {