#!/bin/sh # Test that we report an error when writing to nonexistent dirs # but that we do create new files correctly save_hosts() { opts="--nostdinc -r $ROOT -I $abs_top_srcdir/lenses" (augtool $opts | grep ^/augeas) < $HOSTS.expected if ! cmp $HOSTS $HOSTS.expected > /dev/null 2>&1 ; then echo "Contents of $HOSTS are incorrect" exit 1 fi