Adjust test suite to not output to stderr.
This commit is contained in:
parent
d92cd3c1f3
commit
2d21354ee4
|
@ -12,7 +12,7 @@ cat > etc/init.d/test <<EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
### BEGIN INIT INFO
|
### BEGIN INIT INFO
|
||||||
# Provides: stop-readahead-fedora
|
# Provides: test
|
||||||
# Required-Start: $all
|
# Required-Start: $all
|
||||||
# Required-Stop: $remote_fs
|
# Required-Stop: $remote_fs
|
||||||
# Default-Start: 2 3 4 5
|
# Default-Start: 2 3 4 5
|
||||||
|
@ -25,7 +25,11 @@ EOF
|
||||||
chmod a+rx etc/init.d/test
|
chmod a+rx etc/init.d/test
|
||||||
|
|
||||||
/sbin/insserv -p 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
|
rm -rf etc
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue