From bf4e56a779398e59a4e27ea2f477453ddc3d1e78 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 28 Jun 2011 14:47:30 +0000 Subject: [PATCH] Adapted test_hardlinks to newest agreements with George --- releng/test_hardlinks | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/releng/test_hardlinks b/releng/test_hardlinks index fcc94f0d..86b2a63b 100755 --- a/releng/test_hardlinks +++ b/releng/test_hardlinks @@ -7,7 +7,7 @@ export prog=$(basename "$0") export xorriso=xorriso -export workdir=./tmp/"$prog" +export workdir=./releng_generated_data/"$prog" export image_file="$workdir"/xorriso_hardlinks.iso export on_disk="$workdir"/xorriso_hardlinks_test_dir export in_iso="" @@ -26,20 +26,11 @@ config_by_var() { # Variables get set to empty content to keep them from being applied # more than once and thus overriding settings of higher precedence. - # >>> The short names are not good. - # >>> Environment variables should have a common prefix. Like RELENG_ - # >>> In general, the names should be a bit more expressive. - # >>> Like RELENG_XORRISO - - test -n "$XOR" && xorriso="$XOR" && XOR= test -n "$RELENG_XORRISO" && xorriso="$RELENG_XORRISO" && RELENG_XORRISO= - test -n "$IMG" && image_file="$IMG" && IMG= test -n "$RELENG_WORKIMAGE" && image_file="$RELENG_WORKIMAGE" \ && RELENG_WORKIMAGE= - # This is not $DIR, which would exist before and after the test, - # but a temporary directory which may not exist before. test -n "$RELENG_WORKDIR" && on_disk="$RELENG_WORKDIR" && RELENG_WORKDIR= test -n "$RELENG_ISODIR" && in_iso="$RELENG_ISODIR" && RELENG_ISODIR= @@ -118,13 +109,13 @@ done test -z "$in_iso" && in_iso="$on_disk" -if test -d ./tmp +if test -d ./releng_generated_data then dummy=dummy else - echo "=== TEST ENVIRONMENT ERROR: $prog : No ./tmp directory existing" >&2 + echo "=== TEST ENVIRONMENT ERROR: $prog : No ./releng_generated_data directory existing" >&2 echo "=== Is the current working directory really ./releng of libisoburn ?" >&2 - echo "FAIL : $prog : Test environment error : No ./tmp directory" + echo "FAIL : $prog : Test environment error : No ./releng_generated_data directory" exit 3 fi if test -e "$workdir"