Skip to content

Commit eee4698

Browse files
committed
build: workaround codeql python issue
Signed-off-by: Zxilly <[email protected]>
1 parent 0197060 commit eee4698

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module github.com/Zxilly/go-size-analyzer
22

33
go 1.23
44

5-
// toolchain go1.23rc1
5+
toolchain go1.23rc1
66

77
require (
88
github.com/ZxillyFork/gore v0.0.0-20240709175049-78f2566cdd48

scripts/tests.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -175,15 +175,15 @@ def run_integration_tests(typ: str, gsa_path: str):
175175
log(f"Running integration tests {typ}...")
176176

177177
targets = []
178-
match typ:
179-
case "web" | "flag":
180-
pass # analyze itself, nothing to do
181-
case "example":
182-
targets = load_remote_binaries_as_test(lambda x: x.startswith("bin-"))
183-
case "real":
184-
targets = load_remote_binaries_as_test(lambda x: not x.startswith("bin-"))
185-
case _:
186-
raise Exception(f"Unknown integration test type: {typ}")
178+
179+
if typ == "web" or typ == "flag":
180+
pass # analyze itself, nothing to do
181+
elif typ == "example":
182+
targets = load_remote_binaries_as_test(lambda x: x.startswith("bin-"))
183+
elif typ == "real":
184+
targets = load_remote_binaries_as_test(lambda x: not x.startswith("bin-"))
185+
else:
186+
raise Exception(f"Unknown integration test type: {typ}")
187187

188188
if typ == "example":
189189
timeout = 10

0 commit comments

Comments
 (0)