Bash test fix for su nobody

Dan Nicholson dbn.lists at gmail.com
Sat Aug 11 10:37:12 MDT 2007


On 8/8/07, Greg Schafer <gschafer at zip.com.au> wrote:
>
> sed -i.bak '/THIS_SH/s,$, </dev/tty,' tests/run-test

FYI, don't do .bak on this fix, use .orig or ~ instead. The script
that executes all the tests wildcards on run* and only strips out a
few, so the old run-test.bak gets run, too. This was driving me nuts
because I couldn't figure out why stdin wasn't /dev/tty like I said :)
If I'd just scrolled up a bit...

Here's what the loop looks like in tests/run-all:

for x in run-*
do
        case $x in
        $0|run-minimal|run-gprof)       ;;
        *.orig|*~) ;;
        *)      echo $x ; sh $x ;;
        esac
done

--
Dan



More information about the lfs-dev mailing list