* [PATCH] test/meson.build: add missing 'CXL=@0@'.format(cxl_tool.full_path()),
@ 2025-05-07 16:15 marc.herbert
2025-05-07 21:52 ` Dan Williams
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: marc.herbert @ 2025-05-07 16:15 UTC (permalink / raw)
To: linux-cxl, nvdimm; +Cc: Marc Herbert
From: Marc Herbert <marc.herbert@linux.intel.com>
This fixes the ability to copy and paste the helpful meson output when a
test fails, in order to re-run a failing test directly outside meson and
from any current directory.
meson never had that problem because it always switches to a constant
directory before running the tests.
Fixes commit ef85ab79e7a4 ("cxl/test: Add topology enumeration and
hotplug test") which added the (failing) search for the cxl binary.
Signed-off-by: Marc Herbert <marc.herbert@linux.intel.com>
---
test/meson.build | 1 +
1 file changed, 1 insertion(+)
diff --git a/test/meson.build b/test/meson.build
index d871e28e17ce..2fd7df5211dd 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -255,6 +255,7 @@ foreach t : tests
env : [
'NDCTL=@0@'.format(ndctl_tool.full_path()),
'DAXCTL=@0@'.format(daxctl_tool.full_path()),
+ 'CXL=@0@'.format(cxl_tool.full_path()),
'TEST_PATH=@0@'.format(meson.current_build_dir()),
'DATA_PATH=@0@'.format(meson.current_source_dir()),
],
--
2.49.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] test/meson.build: add missing 'CXL=@0@'.format(cxl_tool.full_path()),
2025-05-07 16:15 [PATCH] test/meson.build: add missing 'CXL=@0@'.format(cxl_tool.full_path()), marc.herbert
@ 2025-05-07 21:52 ` Dan Williams
2025-05-07 22:41 ` Dave Jiang
2025-05-08 2:14 ` Alison Schofield
2 siblings, 0 replies; 4+ messages in thread
From: Dan Williams @ 2025-05-07 21:52 UTC (permalink / raw)
To: marc.herbert, linux-cxl, nvdimm; +Cc: Marc Herbert
marc.herbert@ wrote:
> From: Marc Herbert <marc.herbert@linux.intel.com>
>
> This fixes the ability to copy and paste the helpful meson output when a
> test fails, in order to re-run a failing test directly outside meson and
> from any current directory.
>
> meson never had that problem because it always switches to a constant
> directory before running the tests.
>
> Fixes commit ef85ab79e7a4 ("cxl/test: Add topology enumeration and
> hotplug test") which added the (failing) search for the cxl binary.
Lets just use typical Fixes: trailers i.e.:
Fixes: ef85ab79e7a4 ("cxl/test: Add topology enumeration and hotplug test")
Alison can likely make that change on applying?
Other than that:
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] test/meson.build: add missing 'CXL=@0@'.format(cxl_tool.full_path()),
2025-05-07 16:15 [PATCH] test/meson.build: add missing 'CXL=@0@'.format(cxl_tool.full_path()), marc.herbert
2025-05-07 21:52 ` Dan Williams
@ 2025-05-07 22:41 ` Dave Jiang
2025-05-08 2:14 ` Alison Schofield
2 siblings, 0 replies; 4+ messages in thread
From: Dave Jiang @ 2025-05-07 22:41 UTC (permalink / raw)
To: marc.herbert, linux-cxl, nvdimm
On 5/7/25 9:15 AM, marc.herbert@linux.intel.com wrote:
> From: Marc Herbert <marc.herbert@linux.intel.com>
>
> This fixes the ability to copy and paste the helpful meson output when a
> test fails, in order to re-run a failing test directly outside meson and
> from any current directory.
>
> meson never had that problem because it always switches to a constant
> directory before running the tests.
>
> Fixes commit ef85ab79e7a4 ("cxl/test: Add topology enumeration and
> hotplug test") which added the (failing) search for the cxl binary.
>
> Signed-off-by: Marc Herbert <marc.herbert@linux.intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
> ---
> test/meson.build | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/test/meson.build b/test/meson.build
> index d871e28e17ce..2fd7df5211dd 100644
> --- a/test/meson.build
> +++ b/test/meson.build
> @@ -255,6 +255,7 @@ foreach t : tests
> env : [
> 'NDCTL=@0@'.format(ndctl_tool.full_path()),
> 'DAXCTL=@0@'.format(daxctl_tool.full_path()),
> + 'CXL=@0@'.format(cxl_tool.full_path()),
> 'TEST_PATH=@0@'.format(meson.current_build_dir()),
> 'DATA_PATH=@0@'.format(meson.current_source_dir()),
> ],
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] test/meson.build: add missing 'CXL=@0@'.format(cxl_tool.full_path()),
2025-05-07 16:15 [PATCH] test/meson.build: add missing 'CXL=@0@'.format(cxl_tool.full_path()), marc.herbert
2025-05-07 21:52 ` Dan Williams
2025-05-07 22:41 ` Dave Jiang
@ 2025-05-08 2:14 ` Alison Schofield
2 siblings, 0 replies; 4+ messages in thread
From: Alison Schofield @ 2025-05-08 2:14 UTC (permalink / raw)
To: marc.herbert; +Cc: linux-cxl, nvdimm
On Wed, May 07, 2025 at 04:15:15PM +0000, marc.herbert@linux.intel.com wrote:
> From: Marc Herbert <marc.herbert@linux.intel.com>
>
> This fixes the ability to copy and paste the helpful meson output when a
> test fails, in order to re-run a failing test directly outside meson and
> from any current directory.
>
> meson never had that problem because it always switches to a constant
> directory before running the tests.
>
> Fixes commit ef85ab79e7a4 ("cxl/test: Add topology enumeration and
> hotplug test") which added the (failing) search for the cxl binary.
>
> Signed-off-by: Marc Herbert <marc.herbert@linux.intel.com>
> ---
Thanks for the patch and welcome to ndctl !
(where you get 3 replies to your first patch in less than a day :))
Please update and send a v2. Then there will be no
[as: updated commit msg and log] polluting the final commit.
Prefer commit msg:
test: set the $CXL environment variable in meson.build
Thanks!
Alison
> test/meson.build | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/test/meson.build b/test/meson.build
> index d871e28e17ce..2fd7df5211dd 100644
> --- a/test/meson.build
> +++ b/test/meson.build
> @@ -255,6 +255,7 @@ foreach t : tests
> env : [
> 'NDCTL=@0@'.format(ndctl_tool.full_path()),
> 'DAXCTL=@0@'.format(daxctl_tool.full_path()),
> + 'CXL=@0@'.format(cxl_tool.full_path()),
> 'TEST_PATH=@0@'.format(meson.current_build_dir()),
> 'DATA_PATH=@0@'.format(meson.current_source_dir()),
> ],
> --
> 2.49.0
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-05-08 2:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-07 16:15 [PATCH] test/meson.build: add missing 'CXL=@0@'.format(cxl_tool.full_path()), marc.herbert
2025-05-07 21:52 ` Dan Williams
2025-05-07 22:41 ` Dave Jiang
2025-05-08 2:14 ` Alison Schofield
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox