]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
[PY3] Fix tools testing in "salome test"
authorNicolas Geimer <nicolas.geimer@edf.fr>
Mon, 27 Mar 2017 16:31:33 +0000 (18:31 +0200)
committerNicolas Geimer <nicolas.geimer@edf.fr>
Mon, 27 Mar 2017 16:31:33 +0000 (18:31 +0200)
bin/virtual_salome.py

index 1be8dbf8e71b9338ac85049b7f3f56073390b771..143d541c54e963b8ff2646399c6367f2ed17d1b0 100755 (executable)
@@ -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")