File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
test/lint/test_runner/src Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -34,17 +34,22 @@ fn get_git_root() -> PathBuf {
34
34
PathBuf :: from ( check_output ( git ( ) . args ( [ "rev-parse" , "--show-toplevel" ] ) ) . unwrap ( ) )
35
35
}
36
36
37
+ /// Return all subtree paths
38
+ fn get_subtrees ( ) -> Vec < & ' static str > {
39
+ vec ! [
40
+ "src/crc32c" ,
41
+ "src/crypto/ctaes" ,
42
+ "src/leveldb" ,
43
+ "src/minisketch" ,
44
+ "src/secp256k1" ,
45
+ ]
46
+ }
47
+
37
48
fn lint_subtree ( ) -> LintResult {
38
49
// This only checks that the trees are pure subtrees, it is not doing a full
39
50
// check with -r to not have to fetch all the remotes.
40
51
let mut good = true ;
41
- for subtree in [
42
- "src/crypto/ctaes" ,
43
- "src/secp256k1" ,
44
- "src/minisketch" ,
45
- "src/leveldb" ,
46
- "src/crc32c" ,
47
- ] {
52
+ for subtree in get_subtrees ( ) {
48
53
good &= Command :: new ( "test/lint/git-subtree-check.sh" )
49
54
. arg ( subtree)
50
55
. status ( )
You can’t perform that action at this time.
0 commit comments