selftest: pass location of perl executable from waf to test-envs
[nivanova/samba-autobuild/.git] / selftest / wscript
index 9f1fd4d3d7190dce8343e7d350a1998c58788e2c..8264d96c8a240beb41a7498a52a4d899538c4d05 100644 (file)
@@ -202,6 +202,9 @@ def cmd_testonly(opt):
     # tell build system where to find config.h
     os.environ['CONFIG_H'] = 'bin/default/include/config.h'
 
+    # tell the test system where perl is
+    os.environ['PERL'] = env.PERL
+
     st_done = os.path.join(env.SELFTEST_PREFIX, 'st_done')
     if os.path.exists(st_done):
         os.unlink(st_done)