chiark / gitweb /
test: simplify rules-test.sh wrapper
[elogind.git] / test / rules-test.sh
index 219575360e49a198776eb05a617b09dd19a1eb80..50b83a3e9165ef9ac9bd86f709e93eb583ac01d7 100755 (executable)
 # 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