third_party: Update waf to version 2.0.17
[samba.git] / third_party / waf / waflib / Tools / waf_unit_test.py
index a71ed1c090911922369706bf0968d6ebc0e979a2..6ff6f72739fef9974820b84f14bd0039b4c395a0 100644 (file)
@@ -205,7 +205,7 @@ class utest(Task.Task):
                return self.exec_command(self.ut_exec)
 
        def exec_command(self, cmd, **kw):
-               Logs.debug('runner: %r', cmd)
+               self.generator.bld.log_command(cmd, kw)
                if getattr(Options.options, 'dump_test_scripts', False):
                        script_code = SCRIPT_TEMPLATE % {
                                'python': sys.executable,
@@ -214,7 +214,7 @@ class utest(Task.Task):
                                'cmd': cmd
                        }
                        script_file = self.inputs[0].abspath() + '_run.py'
-                       Utils.writef(script_file, script_code)
+                       Utils.writef(script_file, script_code, encoding='utf-8')
                        os.chmod(script_file, Utils.O755)
                        if Logs.verbose > 1:
                                Logs.info('Test debug file written as %r' % script_file)