mirror of https://gitlab.com/ita1024/waf.git
Merge branch 'waf_ut_enc' into 'master'
waf_unit_test: prevent error when dumping run to script and environment contains UTF-8 chars See merge request ita1024/waf!2220
This commit is contained in:
commit
bffbcec678
|
@ -214,7 +214,7 @@ class utest(Task.Task):
|
||||||
'cmd': cmd
|
'cmd': cmd
|
||||||
}
|
}
|
||||||
script_file = self.inputs[0].abspath() + '_run.py'
|
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)
|
os.chmod(script_file, Utils.O755)
|
||||||
if Logs.verbose > 1:
|
if Logs.verbose > 1:
|
||||||
Logs.info('Test debug file written as %r' % script_file)
|
Logs.info('Test debug file written as %r' % script_file)
|
||||||
|
|
Loading…
Reference in New Issue