File tree 2 files changed +12
-6
lines changed
2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 66
66
./scripts/run_in_build_env.sh \
67
67
"python3 ./scripts/tests/run_tv_casting_test.py test-discovery"
68
68
69
- - name : Remove Linux tv-casting-app and Linux tv-app log files
70
- run : |
71
- "rm ./scripts/tests/Linux-tv-casting-app-logs.txt \
72
- rm ./scripts/tests/Linux-tv-app-logs.txt"
73
-
74
69
- name : Uploading Size Reports
75
70
uses : ./.github/actions/upload-size-reports
76
71
if : ${{ !env.ACT }}
Original file line number Diff line number Diff line change 20
20
import sys
21
21
import time
22
22
23
+ def remove_log_file (log_file ):
24
+ if os .path .exists (log_file ):
25
+ os .remove (log_file )
26
+ else :
27
+ print ("The file does not exist." )
28
+
23
29
def read_logs (log_file ):
24
30
25
31
with open (log_file , 'r' ) as file :
@@ -41,6 +47,11 @@ def read_logs(log_file):
41
47
if "cast request 0" in line :
42
48
print (line )
43
49
found_cast_request_0 = True
50
+
51
+ remove_log_file ('./scripts/tests/Linux-tv-casting-app-logs.txt' )
52
+ remove_log_file ('./scripts/tests/Linux-tv-app-logs.txt' )
53
+
54
+ break
44
55
45
56
if "No commissioner discovered" in line :
46
57
print (line )
@@ -100,7 +111,7 @@ def read_logs(log_file):
100
111
sys .exit (1 )
101
112
102
113
# Print the list of discovered commissioners
103
- print ("Discovered Commissioners :" )
114
+ print ("Discovered Commissioner(s) :" )
104
115
for discovered_commissioner in discovered_commissioners :
105
116
print (discovered_commissioner )
106
117
You can’t perform that action at this time.
0 commit comments