From: Stephen Hemminger <stephen@networkplumber.org>
To: dev@dpdk.org
Cc: Stephen Hemminger <stephen@networkplumber.org>, stable@dpdk.org
Subject: [PATCH v2 6/6] test: fix trace_autotest_with_traces parallel execution
Date: Mon, 19 Jan 2026 17:55:09 -0800 [thread overview]
Message-ID: <20260120015759.301155-7-stephen@networkplumber.org> (raw)
In-Reply-To: <20260120015759.301155-1-stephen@networkplumber.org>
The trace_autotest_with_traces test needs a unique file-prefix to avoid
collisions when running in parallel with other tests.
Rather than duplicating test argument construction, restructure to add
file-prefix as the last step. This allows reusing test_args for the
trace variant by concatenating the trace-specific arguments and a
different file-prefix at the end.
Fixes: 0aeaf75df879 ("test: define unit tests suites based on test types")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
app/test/suites/meson.build | 25 ++++++++++++++++---------
1 file changed, 16 insertions(+), 9 deletions(-)
diff --git a/app/test/suites/meson.build b/app/test/suites/meson.build
index 4c815ea097..fdc0b77149 100644
--- a/app/test/suites/meson.build
+++ b/app/test/suites/meson.build
@@ -90,26 +90,33 @@ foreach suite:test_suites
if not asan and get_option('b_sanitize').contains('address')
continue # skip this test
endif
- if is_linux
- # use unique file-prefix to allow parallel runs
- test_args += ['--file-prefix=' + test_name.underscorify()]
- endif
-
if get_option('default_library') == 'shared'
test_args += ['-d', dpdk_drivers_build_dir]
endif
+ # use unique file-prefix to allow parallel runs
+ if is_linux
+ file_prefix = ['--file-prefix=' + test_name.underscorify()]
+ else
+ file_prefix = []
+ endif
+
test(test_name, dpdk_test,
- args : test_args,
+ args : test_args + file_prefix,
env: ['DPDK_TEST=' + test_name],
timeout : timeout_seconds_fast,
is_parallel : false,
suite : 'fast-tests')
if not is_windows and test_name == 'trace_autotest'
- test_args += ['--trace=.*']
- test_args += ['--trace-dir=@0@'.format(meson.current_build_dir())]
+ trace_extra = ['--trace=.*',
+ '--trace-dir=@0@'.format(meson.current_build_dir())]
+ if is_linux
+ trace_prefix = ['--file-prefix=trace_autotest_with_traces']
+ else
+ trace_prefix = []
+ endif
test(test_name + '_with_traces', dpdk_test,
- args : test_args,
+ args : test_args + trace_extra + trace_prefix,
env: ['DPDK_TEST=' + test_name],
timeout : timeout_seconds_fast,
is_parallel : false,
--
2.51.0
next prev parent reply other threads:[~2026-01-20 1:58 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <0260118201223.323024-1-stephen@networkplumber.org>
2026-01-20 1:55 ` [PATCH v2 0/6] fix test failures on larger core systems Stephen Hemminger
2026-01-20 1:55 ` [PATCH v2 1/6] test: add pause to synchronization spinloops Stephen Hemminger
2026-01-21 16:10 ` Bruce Richardson
2026-01-20 1:55 ` [PATCH v2 2/6] test: fix timeout for atomic test on high core count systems Stephen Hemminger
2026-01-21 16:11 ` Bruce Richardson
2026-01-20 1:55 ` [PATCH v2 3/6] test: fix error handling in ELF load tests Stephen Hemminger
2026-01-20 12:08 ` Marat Khalili
2026-01-20 1:55 ` [PATCH v2 4/6] test: fix unsupported BPF instructions in elf load test Stephen Hemminger
2026-01-21 16:20 ` Bruce Richardson
2026-01-20 1:55 ` [PATCH v2 5/6] test: add file-prefix for all fast-tests on Linux Stephen Hemminger
2026-01-21 16:22 ` Bruce Richardson
2026-01-20 1:55 ` Stephen Hemminger [this message]
2026-01-21 16:29 ` [PATCH v2 6/6] test: fix trace_autotest_with_traces parallel execution Bruce Richardson
2026-01-21 16:31 ` [PATCH v2 0/6] fix test failures on larger core systems Bruce Richardson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260120015759.301155-7-stephen@networkplumber.org \
--to=stephen@networkplumber.org \
--cc=dev@dpdk.org \
--cc=stable@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox