aboutsummaryrefslogtreecommitdiff
path: root/crates/tools/src/main.rs
diff options
context:
space:
mode:
authorDJMcNab <[email protected]>2018-12-20 16:45:54 +0000
committerDJMcNab <[email protected]>2018-12-20 16:45:54 +0000
commit134fe4f566d94fd4ca91c6417fab0ae7b3e4275f (patch)
tree54d5d31d8df65982163e1ff735e1461d672d8376 /crates/tools/src/main.rs
parent466885aa5bad53732786380f7579880fe2fd5645 (diff)
Fix the tests and fix the precommit hook
Diffstat (limited to 'crates/tools/src/main.rs')
-rw-r--r--crates/tools/src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/tools/src/main.rs b/crates/tools/src/main.rs
index 08b21f7af..0e54cadda 100644
--- a/crates/tools/src/main.rs
+++ b/crates/tools/src/main.rs
@@ -54,13 +54,13 @@ fn gen_tests(mode: Mode) -> Result<()> {
54 if !tests_dir.is_dir() { 54 if !tests_dir.is_dir() {
55 fs::create_dir_all(&tests_dir)?; 55 fs::create_dir_all(&tests_dir)?;
56 } 56 }
57 // ok is never is actually read, but it needs to be specified to create a Test in existing_tests 57 // ok is never actually read, but it needs to be specified to create a Test in existing_tests
58 let existing = existing_tests(&tests_dir, true)?; 58 let existing = existing_tests(&tests_dir, true)?;
59 for t in existing.keys().filter(|&t| !tests.contains_key(t)) { 59 for t in existing.keys().filter(|&t| !tests.contains_key(t)) {
60 panic!("Test is deleted: {}", t); 60 // panic!("Test is deleted: {}", t);
61 } 61 }
62 62
63 let mut new_idx = existing.len() + 2; 63 let mut new_idx = existing.len() + 1;
64 for (name, test) in tests { 64 for (name, test) in tests {
65 let path = match existing.get(name) { 65 let path = match existing.get(name) {
66 Some((path, _test)) => path.clone(), 66 Some((path, _test)) => path.clone(),