tests: expose automake bug#14560
[platform/upstream/automake.git] / t / check-no-test-driver.sh
old mode 100755 (executable)
new mode 100644 (file)
index f86b4da..976d19e
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2011-2012 Free Software Foundation, Inc.
+# Copyright (C) 2011-2013 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -18,7 +18,7 @@
 # installed or referenced when the 'serial-tests' option is used.
 
 am_serial_tests=yes
-. ./defs || Exit 1
+. test-init.sh
 
 cat > Makefile.am <<'END'
 AUTOMAKE_OPTIONS = serial-tests
@@ -29,8 +29,8 @@ $ACLOCAL
 
 for opts in '' '-a' '--add-missing --copy'; do
   $AUTOMAKE $opts
-  $FGREP 'test-driver' Makefile.in && Exit 1
-  find . | $FGREP 'test-driver' && Exit 1
+  $FGREP 'test-driver' Makefile.in && exit 1
+  find . | $FGREP 'test-driver' && exit 1
   : For shells with busted 'set -e'.
 done