From ae85695543c1e303ba062a5359a82c82cac53fd3 Mon Sep 17 00:00:00 2001 From: Bjorn Neergaard Date: Tue, 1 May 2018 06:18:03 -0600 Subject: [PATCH] Update run-tests to make use of /usr/bin/env (#1548) * Update run-tests to make use of /usr/bin/env * Update run-vint * Update run-vader-tests * Update custom-linting-rules * Update custom-checks * Update check-toc * Update check-supported-tools-tables --- run-tests | 5 ++++- test/script/check-supported-tools-tables | 5 ++++- test/script/check-toc | 5 ++++- test/script/custom-checks | 5 ++++- test/script/custom-linting-rules | 5 ++++- test/script/run-vader-tests | 5 ++++- test/script/run-vint | 5 ++++- 7 files changed, 28 insertions(+), 7 deletions(-) diff --git a/run-tests b/run-tests index 6004911..c228f15 100755 --- a/run-tests +++ b/run-tests @@ -1,4 +1,7 @@ -#!/bin/bash -eu +#!/usr/bin/env bash + +set -e +set -u # Author: w0rp # diff --git a/test/script/check-supported-tools-tables b/test/script/check-supported-tools-tables index 32cebb2..220c742 100755 --- a/test/script/check-supported-tools-tables +++ b/test/script/check-supported-tools-tables @@ -1,4 +1,7 @@ -#!/bin/bash -eu +#!/usr/bin/env bash + +set -e +set -u # This script compares the table of supported tools in both the README file # and the doc/ale.txt file, so we can complain if they don't match up. diff --git a/test/script/check-toc b/test/script/check-toc index cc2d2b9..8e41158 100755 --- a/test/script/check-toc +++ b/test/script/check-toc @@ -1,4 +1,7 @@ -#!/bin/bash -eu +#!/usr/bin/env bash + +set -e +set -u # This script checks that the table of contents for the supported tools is # sorted, and that the table matches the files. diff --git a/test/script/custom-checks b/test/script/custom-checks index 791053d..76b9bc8 100755 --- a/test/script/custom-checks +++ b/test/script/custom-checks @@ -1,4 +1,7 @@ -#!/bin/bash -eu +#!/usr/bin/env bash + +set -e +set -u exit_code=0 image=w0rp/ale diff --git a/test/script/custom-linting-rules b/test/script/custom-linting-rules index ef6d792..0d1a0fd 100755 --- a/test/script/custom-linting-rules +++ b/test/script/custom-linting-rules @@ -1,4 +1,7 @@ -#!/bin/bash -eu +#!/usr/bin/env bash + +set -e +set -u # This Bash script implements custom sanity checks for scripts beyond what # Vint covers, which are easy to check with regex. diff --git a/test/script/run-vader-tests b/test/script/run-vader-tests index a10b8ba..3e7e815 100755 --- a/test/script/run-vader-tests +++ b/test/script/run-vader-tests @@ -1,4 +1,7 @@ -#!/bin/bash -eu +#!/usr/bin/env bash + +set -e +set -u image=w0rp/ale docker_flags=(--rm -v "$PWD:/testplugin" -v "$PWD/test:/home" -w /testplugin "$image") diff --git a/test/script/run-vint b/test/script/run-vint index e114030..0d5b6e1 100755 --- a/test/script/run-vint +++ b/test/script/run-vint @@ -1,4 +1,7 @@ -#!/bin/bash -eu +#!/usr/bin/env bash + +set -e +set -u exit_code=0 image=w0rp/ale