Adjust test suite to not output to stderr.

This commit is contained in:
Petter Reinholdtsen 2014-04-17 07:11:38 +00:00
parent d92cd3c1f3
commit 2d21354ee4
1 changed files with 6 additions and 2 deletions

View File

@ -12,7 +12,7 @@ cat > etc/init.d/test <<EOF
#!/bin/sh
set -e
### BEGIN INIT INFO
# Provides: stop-readahead-fedora
# Provides: test
# Required-Start: $all
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
@ -25,7 +25,11 @@ EOF
chmod a+rx etc/init.d/test
/sbin/insserv -p etc/init.d test
$STARTPAR -d etc/init.d -e etc -P S -R 2 -M start
if $STARTPAR -d etc/init.d -e etc -P S -R 2 -M start 2>&1 | grep -q 'is running' ; then
echo success: the test init.d script was running
else
echo error: the test init.d was not running
fi
rm -rf etc