Find the right directory to run the test components.
[rsync/rsync.git] / testsuite / master.test
index 088b6f2..5356d22 100755 (executable)
@@ -21,11 +21,11 @@ missing=0
 passed=0
 failed=0
 
-cd "$testdir"
+testsrcdir="`pwd`"
 
 for testbase in $test_names
 do
-    testscript="$testbase.test"
+    testscript="$testsrcdir/$testbase.test"
     if test \! -f "$testscript" 
     then
        echo "$testscript does not exist" >&2