From 106a7fa13946eeb0e98859fce0a901be0195f48d Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Thu, 25 Jul 2024 17:01:06 +1000 Subject: [PATCH] formatting by black --- master-docker-nonstandard/master.cfg | 55 +++++++++++++++++++--------- 1 file changed, 37 insertions(+), 18 deletions(-) diff --git a/master-docker-nonstandard/master.cfg b/master-docker-nonstandard/master.cfg index e93335ec..5a1ef7fb 100644 --- a/master-docker-nonstandard/master.cfg +++ b/master-docker-nonstandard/master.cfg @@ -478,7 +478,7 @@ f_asan_ubsan_build.addStep( "sh", "-c", util.Interpolate( - 'cmake . -DWITH_ASAN=ON -DWITH_UBSAN=ON -DPLUGIN_PERFSCHEMA=NO -DPLUGIN_MROONGA=NO -DPLUGIN_OQGRAPH=NO -DPLUGIN_ROCKSDB=NO -DPLUGIN_CONNECT=NO -DWITH_SAFEMALLOC=OFF && cmake --build . --verbose --parallel %(kw:jobs)s', + "cmake . -DWITH_ASAN=ON -DWITH_UBSAN=ON -DPLUGIN_PERFSCHEMA=NO -DPLUGIN_MROONGA=NO -DPLUGIN_OQGRAPH=NO -DPLUGIN_ROCKSDB=NO -DPLUGIN_CONNECT=NO -DWITH_SAFEMALLOC=OFF && cmake --build . --verbose --parallel %(kw:jobs)s", jobs=util.Property("jobs", default="$(getconf _NPROCESSORS_ONLN)"), ), ], @@ -581,7 +581,7 @@ f_asan_build.addStep( "sh", "-c", util.Interpolate( - 'cmake . -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DWITH_ASAN=ON -DPLUGIN_PERFSCHEMA=NO -DPLUGIN_MROONGA=NO -DPLUGIN_OQGRAPH=NO -DPLUGIN_ROCKSDB=NO -DPLUGIN_CONNECT=NO -DWITH_SAFEMALLOC=OFF && cmake --build . --verbose --parallel %(kw:jobs)s', + "cmake . -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DWITH_ASAN=ON -DPLUGIN_PERFSCHEMA=NO -DPLUGIN_MROONGA=NO -DPLUGIN_OQGRAPH=NO -DPLUGIN_ROCKSDB=NO -DPLUGIN_CONNECT=NO -DWITH_SAFEMALLOC=OFF && cmake --build . --verbose --parallel %(kw:jobs)s", jobs=util.Property("jobs", default="$(getconf _NPROCESSORS_ONLN)"), ), ], @@ -596,7 +596,27 @@ f_asan_build.addStep( "sh", "-c", util.Interpolate( - 'cd mysql-test; MTR_FEEDBACK_PLUGIN=1 ASAN_OPTIONS="abort_on_error=1" LSAN_OPTIONS="print_suppressions=0,suppressions=$PWD/lsan.supp" perl mysql-test-run.pl --verbose-restart --force --retry=3 --max-save-core=2 --max-save-datadir=10 --max-test-fail=20 --mem --parallel=$(expr %(kw:jobs)s \* 2)', + ";".join( + [ + "cd mysql-test", + " ".join( + [ + "MTR_FEEDBACK_PLUGIN=1", + 'ASAN_OPTIONS="abort_on_error=1"', + 'LSAN_OPTIONS="print_suppressions=0,suppressions=$PWD/lsan.supp"', + "perl mysql-test-run.pl", + "--verbose-restart", + "--force", + "--retry=3", + "--max-save-core=2", + "--max-save-datadir=10", + "--max-test-fail=20", + "--mem", + "--parallel=$(expr %(kw:jobs)s \* 2)", + ] + ), + ] + ), jobs=util.Property("jobs", default="$(getconf _NPROCESSORS_ONLN)"), ), ], @@ -1023,30 +1043,29 @@ f_full_test.addStep( ) ) -#MTR steps +# MTR steps full_test_configs = { "emb": {}, "nm": {}, "ps": {}, - "emb-ps":{}, + "emb-ps": {}, "nm_func_1_2": {}, "nm_engines": {}, - "view": { - "additional_args": "--suite=main" - }, - "connect": {} + "view": {"additional_args": "--suite=main"}, + "connect": {}, } for typ in full_test_configs: - addTests(f_full_test, - mtr_test_type=typ, - mtr_step_db_pool=mtrDbPool, - mtr_additional_args=full_test_configs[typ].get('additional_args',""), - mtr_feedback_plugin=1, - mtr_max_test_fail=10, - mtr_step_timeout=3600, - mtr_step_auto_create_tables=False - ) + addTests( + f_full_test, + mtr_test_type=typ, + mtr_step_db_pool=mtrDbPool, + mtr_additional_args=full_test_configs[typ].get("additional_args", ""), + mtr_feedback_plugin=1, + mtr_max_test_fail=10, + mtr_step_timeout=3600, + mtr_step_auto_create_tables=False, + ) f_full_test.addStep(saveLogs())