test: Set some cases non-parallel

Some UT cases read and write to `ERRLOG_PERSIST_PATH` dir so they will
try to remove/create the dir and read/write files in the dir during the
case execution.
It causes races and the unit tests fail intermittently.

Fix the issue by setting the `is_parallel` to false for the specific
cases that use the `ERRLOG_PERSIST_PATH` dir, so that these cases are
run in sequence.

Tested: Verify the UT always passes for more than 300 loops.

Signed-off-by: Lei YU <yulei.sh@bytedance.com>
Change-Id: I33f10ded3ca0dc11ae52f7f43849d9483ee9d202
diff --git a/test/meson.build b/test/meson.build
index 57e8164..9bf34ed 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -24,8 +24,6 @@
 endif
 
 tests = [
-    'elog_quiesce_test',
-    'elog_update_ts_test',
     'extensions_test',
     'remote_logging_test_address',
     'remote_logging_test_config',
@@ -33,7 +31,6 @@
     'sdtest',
     'serialization_test_path',
     'serialization_test_properties',
-    'elog_errorwrap_test',
 ]
 foreach t : tests
     test(
@@ -54,3 +51,30 @@
         )
     )
 endforeach
+
+tests_non_parallel = [
+    'elog_quiesce_test',
+    'elog_update_ts_test',
+    'elog_errorwrap_test',
+]
+
+foreach t : tests_non_parallel
+    test(
+        'test_' + t.underscorify(),
+        executable(
+            'test-' + t.underscorify(),
+            t + '.cpp',
+            'common.cpp',
+            log_manager_sources,
+            '../phosphor-rsyslog-config/server-conf.cpp',
+            dependencies: [
+                gmock_dep,
+                gtest_dep,
+                log_manager_deps,
+                phosphor_logging_dep,
+            ],
+            include_directories: include_directories('..', '../gen'),
+        ),
+        is_parallel: false,
+    )
+endforeach