From 8c80431e9c9425b3edd7517e9c0dd814599b7104 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Fri, 20 Nov 2015 18:43:53 +0100 Subject: 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. --- share/dtf/lib/default | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'share/dtf/lib/default') 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" } -- cgit