test: set the $CXL environment variable in meson.build
PATCH v2 1/1 test: set the $CXL environment variable in meson.build
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.
--- test/meson.build | 1 + 1 file changed, 1 insertion(+)
test/meson.build +1 -0
@@ -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
Quoted 6 lines · On Thu, May 08, 2025 at 06:31:42PM +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 ef85ab79e7a4 ("cxl/test: Add topology enumeration and hotplug test")Reviewed-by Dan Williams <[email protected]>Reviewed-by Dave Jiang <[email protected]>Signed-off-by Marc Herbert <[email protected]>
Applied to pending, thanks!
https://github.com/pmem/ndctl/tree/pending
Quoted 20 lines
--- test/meson.build | 1 + 1 file changed, 1 insertion(+)test/meson.build +1
-0@@ -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