diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2015-01-20 20:50:35 +0100 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2015-01-20 20:52:25 +0100 |
commit | e8015e6e28fe7d287fc1d5d8bfd82ca65c51326c (patch) | |
tree | 820b84edb419f34a1b6139d64bd79fb8daf75db2 /test/rules-test.sh | |
parent | c09ef2e4e8331ddc7ee063d295c322a0939ea851 (diff) |
test: simplify rules-test.sh wrapper
Drop globbing of rules/*.rules in the rules-test.sh wrapper and move that logic
into the actual test rule-syntax-check.py. This can still be called with
individual rules files, but when being called without arguments it will now
process all top_builddir/rules/*.rules.
Preparation for dropping the shell wrappers altogether.
Diffstat (limited to 'test/rules-test.sh')
-rwxr-xr-x | test/rules-test.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/rules-test.sh b/test/rules-test.sh index 219575360e..50b83a3e91 100755 --- a/test/rules-test.sh +++ b/test/rules-test.sh @@ -17,12 +17,10 @@ # You should have received a copy of the GNU Lesser General Public License # along with systemd; If not, see <http://www.gnu.org/licenses/>. -[ -n "$srcdir" ] || srcdir=`dirname $0`/.. - # skip if we don't have python type ${PYTHON:-python} >/dev/null 2>&1 || { echo "$0: No $PYTHON installed, skipping udev rule syntax check" exit 0 } -$PYTHON $srcdir/test/rule-syntax-check.py `find $srcdir/rules -name '*.rules'` +$PYTHON $srcdir/test/rule-syntax-check.py |