From: Nicolas Geimer Date: Mon, 27 Mar 2017 16:31:33 +0000 (+0200) Subject: [PY3] Fix tools testing in "salome test" X-Git-Tag: V9_0_0~25^2~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5e09c77dcffd750f2edf22243f7167e1c266cc4f;p=modules%2Fkernel.git [PY3] Fix tools testing in "salome test" --- diff --git a/bin/virtual_salome.py b/bin/virtual_salome.py index 1be8dbf8e..143d541c5 100755 --- a/bin/virtual_salome.py +++ b/bin/virtual_salome.py @@ -380,7 +380,8 @@ def link_extra_test(options): symlink(extra_test_dir, os.path.join(test_dir, options.extra_test_name)) # register extra_test for testing in CTestTestfile.cmake with open(os.path.join(test_dir, "CTestTestfile.cmake"), "ab") as f: - f.write("SUBDIRS(%s)\n"%options.extra_test_name) + aStr ="SUBDIRS(%s)\n"%options.extra_test_name + f.write(aStr.encode()) else: if verbose: print(extra_test_dir, " doesn't exist")