diff --git a/core/testing/runner.odin b/core/testing/runner.odin index b3ac03483..020c40d0f 100644 --- a/core/testing/runner.odin +++ b/core/testing/runner.odin @@ -207,7 +207,7 @@ parse_cli_options :: proc(argv: []string, opts: ^Options, stdout, stderr: io.Wri for arg in argv { if strings.starts_with(arg, "-tests:") { - tests := arg[strings.index(arg, ":")+1:] + _, _, tests := strings.partition(arg, ":") if len(tests) < 1 { fmt.wprintln(stderr, "No test names specified for '-tests:'") os.exit(-1)