File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -813,7 +813,11 @@ def dashboard_pre_processing():
813
813
filename = None
814
814
feature_name = None
815
815
scenario_name = None
816
- for row in output .decode ("utf-8" ).split ("\n " ):
816
+ if is_windows :
817
+ output = output .decode ("latin1" )
818
+ else :
819
+ output = output .decode ("utf-8" )
820
+ for row in output .replace ("\r " , "" ).split ("\n " ):
817
821
if row .startswith ("Feature: " ):
818
822
filename_count += 1
819
823
feature_count += 1
Original file line number Diff line number Diff line change 28
28
import tkinter as tk # noqa: E402
29
29
from tkinter .scrolledtext import ScrolledText # noqa: E402
30
30
31
+ is_windows = False
32
+ if sys .platform in ["win32" , "win64" , "x64" ]:
33
+ is_windows = True
34
+
31
35
32
36
def set_colors (use_colors ):
33
37
c0 = ""
@@ -371,7 +375,11 @@ def main():
371
375
file_scenario_count = {}
372
376
f_count = 0
373
377
s_count = 0
374
- for row in output .decode ("utf-8" ).split ("\n " ):
378
+ if is_windows :
379
+ output = output .decode ("latin1" )
380
+ else :
381
+ output = output .decode ("utf-8" )
382
+ for row in output .replace ("\r " , "" ).split ("\n " ):
375
383
if row .startswith ("Feature: " ):
376
384
if f_count > 0 :
377
385
file_scenario_count [str (f_count )] = s_count
@@ -386,7 +394,7 @@ def main():
386
394
file_scenario_count [str (f_count )] = s_count
387
395
f_count = 0
388
396
s_count = 0
389
- for row in output .decode ( "utf-8 " ).split ("\n " ):
397
+ for row in output .replace ( " \r " , " " ).split ("\n " ):
390
398
if row .startswith ("Feature: " ):
391
399
f_count += 1
392
400
feature_name = row .split ("Feature: " )[1 ]
You can’t perform that action at this time.
0 commit comments