Skip to contentSkip to conversation

test/meson.build: add missing 'CXL=@0@'.format(cxl_tool.full_path()),

PATCH In review [email protected] 4 participants 4 messages May 7, 2025 – May 8, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test/meson.build: add missing 'CXL=@0@'.format(cxl_tool.full_path()),

From: Marc Herbert <[email protected]>

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.

---
 test/meson.build | 1 +
 1 file changed, 1 insertion(+)
test/meson.build +1 -0
index d871e28e17ce..2fd7df5211dd 100644
@@ -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()),
     ],
Signature · 1 line
2.49.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · marc.herbert@ wrote:

From: Marc Herbert <[email protected]>

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:

maintainer Reviewed-by on v1 1/1
#2 lore raw
In reply to [email protected]
Quoted 6 lines · On 5/7/25 9:15 AM, [email protected] wrote:

From: Marc Herbert <[email protected]>

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.

Quoted 7 lines

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.

Quoted 16 lines
---
 test/meson.build | 1 +
 1 file changed, 1 insertion(+)
test/meson.build +1 -0
index d871e28e17ce..2fd7df5211dd 100644
@@ -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()),
     ],
maintainer
#3 lore raw
In reply to [email protected]
Quoted 6 lines · On Wed, May 07, 2025 at 04:15:15PM +0000, [email protected] wrote:

From: Marc Herbert <[email protected]>

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.

Quoted 8 lines

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.

---

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

Quoted 19 lines
 test/meson.build | 1 +
 1 file changed, 1 insertion(+)
test/meson.build +1 -0
index d871e28e17ce..2fd7df5211dd 100644
@@ -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()),
     ],
Signature · 1 line
2.49.0