diff mbox series

[rdma-core,7/8] Fix check-build when the --build argument is present

Message ID 20180920163910.4403-8-jgg@ziepe.ca (mailing list archive)
State Not Applicable
Headers show
Series Various small fixes | expand

Commit Message

Jason Gunthorpe Sept. 20, 2018, 4:39 p.m. UTC
From: Jason Gunthorpe <jgg@mellanox.com>

The cwd was missed when invoking ninja install. Travis uses . as the build
argument so this wasn't noticed.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
---
 buildlib/check-build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/buildlib/check-build b/buildlib/check-build
index 83c3ce236bc416..facf42c9ff07ba 100755
--- a/buildlib/check-build
+++ b/buildlib/check-build
@@ -272,7 +272,7 @@  def test_installed_headers(args):
     with private_tmp() as tmpd:
         env = copy.deepcopy(os.environ);
         env["DESTDIR"] = tmpd;
-        subprocess.check_output(["ninja","install"],env=env);
+        subprocess.check_output(["ninja","install"],env=env,cwd=args.BUILD);
 
         includes = get_headers(tmpd);
         incdir = os.path.commonprefix(includes);