[PATCH i-g-t 13/33] Add .cocciconfig

Lyude lyude at redhat.com
Fri Jun 7 23:08:01 UTC 2019


From: Lyude Paul <lyude at redhat.com>

To save everyone some typing

Signed-off-by: Lyude Paul <lyude at redhat.com>
---
 .cocciconfig  | 3 +++
 lib/igt.cocci | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)
 create mode 100644 .cocciconfig

diff --git a/.cocciconfig b/.cocciconfig
new file mode 100644
index 00000000..9db38c28
--- /dev/null
+++ b/.cocciconfig
@@ -0,0 +1,3 @@
+[spatch]
+	options = --sp-file lib/igt.cocci
+	options = --use-gitgrep
diff --git a/lib/igt.cocci b/lib/igt.cocci
index 4f3916ff..c02d85b0 100644
--- a/lib/igt.cocci
+++ b/lib/igt.cocci
@@ -1,7 +1,7 @@
 // Semantic patch for common patterns and their replacement by igt
 // infrastructure and macros. Please run with
 //
-// spatch --sp-file lib/igt.cocci --in-place tests/*.c
+// spatch --in-place --dir tests/
 //
 // on your new testcase.
 
-- 
2.21.0



More information about the Intel-gfx-trybot mailing list