Browse Source

py23 gobuild.py: go coverage

snermolaev 1 year ago
parent
commit
c497453802
1 changed files with 1 additions and 1 deletions
  1. 1 1
      build/plugins/gobuild.py

+ 1 - 1
build/plugins/gobuild.py

@@ -189,7 +189,7 @@ def on_go_process_srcs(unit):
         for f in go_files:
             if f.endswith('_test.go'):
                 continue
-            cover_var = 'GoCover' + base64.b32encode(f).rstrip('=')
+            cover_var = 'GoCover' + six.ensure_str(base64.b32encode(six.ensure_binary(f))).rstrip('=')
             cover_file = unit.resolve_arc_path(f)
             cover_file_output = '{}/{}'.format(unit_path, os.path.basename(f))
             unit.on_go_gen_cover_go([cover_file, cover_file_output, cover_var])