tools: check all directives even if it detects non-updated files
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 22 Feb 2019 09:00:54 +0000 (18:00 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 25 Feb 2019 03:41:11 +0000 (12:41 +0900)
tools/check-directives.sh

index 1c20947..99f8f9d 100755 (executable)
@@ -10,17 +10,20 @@ function generate_directives() {
         }}' "$1"
 }
 
+ret=0
 if [[ $(generate_directives src/network/networkd-network-gperf.gperf | wc -l) -ne $(wc -l <test/fuzz/fuzz-network-parser/directives.network) ]]; then
        echo "Looks like test/fuzz/fuzz-network-parser/directives.network hasn't been updated"
-       exit 1
+        ret=1
 fi
 
 if [[ $(generate_directives src/network/netdev/netdev-gperf.gperf | wc -l) -ne $(wc -l <test/fuzz/fuzz-netdev-parser/directives.netdev) ]]; then
        echo "Looks like test/fuzz/fuzz-netdev-parser/directives.netdev hasn't been updated"
-       exit 1
+       ret=1
 fi
 
 if [[ $(generate_directives src/udev/net/link-config-gperf.gperf | wc -l) -ne $(wc -l <test/fuzz/fuzz-link-parser/directives.link) ]]; then
        echo "Looks like test/fuzz/fuzz-link-parser/directives.link hasn't been updated"
-       exit 1
+       ret=1
 fi
+
+exit $ret