From 17a65504da841d5586ef5e4c2a2d2db7ef7078fa Mon Sep 17 00:00:00 2001 From: Mike Aizatsky Date: Mon, 10 Oct 2016 09:23:21 -0700 Subject: [PATCH] skipping non-executable files --- infra/libfuzzer-pipeline.groovy | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/infra/libfuzzer-pipeline.groovy b/infra/libfuzzer-pipeline.groovy index 793a6358c..ea013599f 100644 --- a/infra/libfuzzer-pipeline.groovy +++ b/infra/libfuzzer-pipeline.groovy @@ -84,6 +84,7 @@ def call(body) { } } + // Run each of resulting fuzzers. dir ('out') { stage name: "Running fuzzers" sh "ls -alR" @@ -94,10 +95,11 @@ def call(body) { def files = findFiles() for (int j = 0; j < files.size(); j++) { def file = files[j] - if (file.name.endsWith('.dict') || file.name.endsWith('.options') || file.directory) { - continue + if (file.directory) { continue } + if (!new File(file.name).canExecute()) { + echo "skipping: $file" + continue } - echo "FILE: $file" sh "docker run -v $d:/out -t ossfuzz/libfuzzer-runner /out/$file -runs=1" } }