File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -50,12 +50,6 @@ const CTS_GIT_URL: &str = "https://github.com/gpuweb/cts.git";
50
50
/// Path to default CTS test list.
51
51
const CTS_DEFAULT_TEST_LIST : & str = "cts_runner/test.lst" ;
52
52
53
- static TEST_LINE_REGEX : LazyLock < Regex > = LazyLock :: new ( || {
54
- RegexBuilder :: new ( r#"(?:fails-if\s*\(\s*(?<fails_if>\w+)\s*\)\s+)?(?<selector>.*)"# )
55
- . build ( )
56
- . unwrap ( )
57
- } ) ;
58
-
59
53
#[ derive( Default ) ]
60
54
struct TestLine {
61
55
pub selector : OsString ,
@@ -103,6 +97,12 @@ pub fn run_cts(
103
97
104
98
for file in list_files {
105
99
tests. extend ( shell. read_file ( file) ?. lines ( ) . filter_map ( |line| {
100
+ static TEST_LINE_REGEX : LazyLock < Regex > = LazyLock :: new ( || {
101
+ RegexBuilder :: new ( r#"(?:fails-if\s*\(\s*(?<fails_if>\w+)\s*\)\s+)?(?<selector>.*)"# )
102
+ . build ( )
103
+ . unwrap ( )
104
+ } ) ;
105
+
106
106
let trimmed = line. trim ( ) ;
107
107
let is_comment = trimmed. starts_with ( "//" ) || trimmed. starts_with ( "#" ) ;
108
108
let captures = TEST_LINE_REGEX
You can’t perform that action at this time.
0 commit comments