From b2f6f2443f0132a8b7590818cd440506ef4a3256 Mon Sep 17 00:00:00 2001 From: Dan Nichilson Date: Sat, 11 Aug 2007 17:00:48 +0000 Subject: Change bash stdin test fix to affect only the necessary script git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8309 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 4 ++-- chapter06/bash.xml | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index d4370eb23..3d83eff24 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -36,12 +36,12 @@ --> - 2007-08-11 - [dnicholson] - Started 7.0 milestone. + [dnicholson] - Changed the Bash testsuite standard input fix + to only affect the necessary test script. diff --git a/chapter06/bash.xml b/chapter06/bash.xml index 56d077a22..a6a694b86 100644 --- a/chapter06/bash.xml +++ b/chapter06/bash.xml @@ -75,16 +75,17 @@ sed -i "s|htmldir = @htmldir@|htmldir = /usr/share/doc/bash-&bash-version;|" \ To prepare the tests, ensure that the locale setting from our environment will be used and that the nobody user can write to the sources tree: + class="username">nobody user can read the standard input + device and write to the sources tree: sed -i 's/LANG/LC_ALL/' tests/intl.tests +sed -i 's@tests@& </dev/tty@' tests/run-test chown -Rv nobody ./ Now, run the tests as the nobody user, ensuring that the standard - input device is readable: + class="username">nobody user: -su-tools nobody -s /bin/bash -c "make tests" </dev/tty +su-tools nobody -s /bin/bash -c "make tests" Install the package: -- cgit v1.2.3-54-g00ecf