[augeas-devel] augeas: master - * tests/test-put-symlink.sh: fix broken test

David Lutterkort lutter at fedoraproject.org
Wed Jun 10 00:34:35 UTC 2009


Gitweb:        http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=c5aacdded55979e155f4a2aec57ffe690e41f808
Commit:        c5aacdded55979e155f4a2aec57ffe690e41f808
Parent:        969c4f523111d199bd0b45a797269c2b12e43a93
Author:        David Lutterkort <lutter at redhat.com>
AuthorDate:    Tue Jun 9 16:18:18 2009 -0700
Committer:     David Lutterkort <lutter at redhat.com>
CommitterDate: Tue Jun 9 16:19:50 2009 -0700

* tests/test-put-symlink.sh: fix broken test

- use lenses in ../lenses
- fix typo: HOSTS_AUGSAVE, not HOSTS_AGSAVE
---
 tests/test-put-symlink.sh |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/test-put-symlink.sh b/tests/test-put-symlink.sh
index a9b9ede..de1c7c9 100755
--- a/tests/test-put-symlink.sh
+++ b/tests/test-put-symlink.sh
@@ -3,6 +3,7 @@
 # Test that we correctly preserve symlinks when saving a file
 
 ROOT=$abs_top_builddir/build/test-put-symlink
+LENSES=$abs_top_srcdir/lenses
 HOSTS=$ROOT/etc/hosts
 REAL_HOSTS=$ROOT/other/hosts
 
@@ -16,13 +17,13 @@ EOF
 
 (cd $(dirname $HOSTS) && ln -s ../other/hosts $(basename $HOSTS))
 
-augtool --nostdinc -b -r $ROOT > /dev/null <<EOF
+augtool --nostdinc -I $LENSES -b -r $ROOT > /dev/null <<EOF
 set /files/etc/hosts/1/alias myhost
 save
 EOF
 
 HOSTS_AUGSAVE=${HOSTS}.augsave
-if [ ! -f $HOSTS_AGSAVE ] ; then
+if [ ! -f $HOSTS_AUGSAVE ] ; then
     echo "Missing /etc/hosts.augsave"
     exit 1
 fi




More information about the augeas-devel mailing list