diff options
author | Pavel Raiskup <praiskup@redhat.com> | 2015-11-20 18:43:53 +0100 |
---|---|---|
committer | Pavel Raiskup <praiskup@redhat.com> | 2015-11-20 18:43:53 +0100 |
commit | 8c80431e9c9425b3edd7517e9c0dd814599b7104 (patch) | |
tree | 008ea00e183ffaec30deaa23275cd748d20c22d3 /share/dtf | |
parent | 995a49aae00e7adda6bb1e44d45aac9840ec5dab (diff) | |
download | dtf-8c80431e9c9425b3edd7517e9c0dd814599b7104.tar.gz dtf-8c80431e9c9425b3edd7517e9c0dd814599b7104.tar.xz dtf-8c80431e9c9425b3edd7517e9c0dd814599b7104.zip |
dtf-gen: don't take $outputdir as test candidate
* bin/dtf-gen: Ensure that $outputdir is absolute path.
* share/dtf/lib/default (__dtf_is_testdir): Readlink -f for both
outputdir and test case candidate directory. This is OK because
we don't have to make 'dtf-gen' script terribly portable.
Diffstat (limited to 'share/dtf')
-rw-r--r-- | share/dtf/lib/default | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/share/dtf/lib/default b/share/dtf/lib/default index 24a9c0c..9981b09 100644 --- a/share/dtf/lib/default +++ b/share/dtf/lib/default @@ -11,12 +11,17 @@ __dtf_is_testdir () { test -d "$1" || return 1 + case "$1" in DTF_OUTPUT|DTF_RESULT|library) return 1 ;; esac - : + + _d_sub_path=`readlink -f "$1"` + _d_out_path=`readlink -f "$outputdir"` + + test "$_d_sub_path" != "$_d_out_path" } |