Let's sort tests files before iterating over them.
Put the find string in a separated function so it's more readable.
Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
nf_tables_ipv4 nf_tables_ipv6 nf_tables
}
+find_tests() {
+ ${FIND} ${TESTDIR} -executable -regex \
+ .*${RETURNCODE_SEPARATOR}[0-9]+ | sort
+}
+
echo ""
ok=0
failed=0
-for testfile in $(${FIND} ${TESTDIR} -executable -regex .*${RETURNCODE_SEPARATOR}[0-9]+)
+for testfile in $(find_tests)
do
kernel_cleanup