summaryrefslogtreecommitdiff
path: root/CC/test
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-06-27 15:07:59 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-08-29 17:48:45 +0200
commitf41343abe847fa88a4cbb46d856bfc44efa8595a (patch)
tree47b4e7f2d5aa43ce85470ac65814339cd96ac864 /CC/test
parent6398d0947673a75cf15544af34f038ff8b18b51b (diff)
downloadrules-cc-f41343abe847fa88a4cbb46d856bfc44efa8595a.tar.gz
python: Add type hints and fix style in rules scripts
Diffstat (limited to 'CC/test')
-rwxr-xr-xCC/test/runner12
1 files changed, 6 insertions, 6 deletions
diff --git a/CC/test/runner b/CC/test/runner
index 0647621..fc1f04c 100755
--- a/CC/test/runner
+++ b/CC/test/runner
@@ -18,14 +18,14 @@ import os
import subprocess
import time
-time_start = time.time()
-time_stop = 0
-result = "UNKNOWN"
-stderr = ""
-stdout = ""
+time_start: float = time.time()
+time_stop: float = 0
+result: str = "UNKNOWN"
+stderr: str = ""
+stdout: str = ""
-def dump_results():
+def dump_results() -> None:
with open("result", "w") as f:
f.write("%s\n" % (result, ))
with open("time-start", "w") as f: