pjdfstest icon indicating copy to clipboard operation
pjdfstest copied to clipboard

Excluding file types

Open gaul opened this issue 4 years ago • 1 comments
trafficstars

I would like to exclude file types that are not interesting to network file systems, e.g., block and char. I could add an array with all types to misc.sh which the environment would override. This would require doing some math in all the test plans, e.g., echo "1..203" becomes something like echo "1..$((${#DEVICE_TYPES[@]} * 7))". Is there a better approach to this than doing a bunch of arithmetic? I see some existing feature detecting code like:

if supported lchmod; then
        echo "1..203"
else
        echo "1..119"
fi

gaul avatar Mar 13 '21 02:03 gaul

Calculating the plan would become very complicated with your proposal. This is one of the problems with TAP. I don't see a better option that doing arithmetic like you propose.

asomers-ax avatar Mar 13 '21 02:03 asomers-ax