Skip to content
Snippets Groups Projects
Commit 9200818a authored by Ming Rui Zhang's avatar Ming Rui Zhang
Browse files

script: use consistent name for mute jami dring option

Change-Id: I7e3db31838884bc585d981ced91b4294cd5a8c14
parent 32a8978f
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
......@@ -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) {
......
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment