From 023320fe9bfc74906e408dc7fe93071a2fe066ba Mon Sep 17 00:00:00 2001 From: Justin Ridgewell Date: Tue, 31 Aug 2021 02:14:37 -0400 Subject: [PATCH] Add ability to grep for test compress test case --- test/compress.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/compress.js b/test/compress.js index dd18e06db..f2bf315f3 100644 --- a/test/compress.js +++ b/test/compress.js @@ -290,7 +290,9 @@ async function run_compress_tests() { return true; } var tests = parse_test(path.resolve(dir, file)); + let { GREP } = process.env; for (var i in tests) if (tests.hasOwnProperty(i)) { + if (GREP && !i.includes(GREP)) continue; if (!await test_case(tests[i])) { failures++; failed_files[file] = 1;