mirror of
https://github.com/ovh/debian-cis.git
synced 2024-11-26 07:21:22 +01:00
dismiss_count will still report failed root/sudo consistency failure
Add comment to dismiss_tests
This commit is contained in:
parent
5139cf0f8b
commit
ddfee23c80
@ -123,10 +123,8 @@ play_consistency_tests() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ 1 -eq $consist_test ]; then
|
if [ 1 -eq $consist_test ]; then
|
||||||
if [ 0 -eq $dismiss_count ]; then
|
nbfailedconsist=$(( nbfailedconsist + 1 ))
|
||||||
nbfailedconsist=$(( nbfailedconsist + 1 ))
|
listfailedconsist="$listfailedconsist $(make_usecase_name "$usecase" consist)"
|
||||||
listfailedconsist="$listfailedconsist $(make_usecase_name "$usecase" consist)"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,6 +66,7 @@ contain()
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Do not run tests at all for the next `run`
|
||||||
dismiss_test() {
|
dismiss_test() {
|
||||||
# shellcheck disable=2034
|
# shellcheck disable=2034
|
||||||
dismiss_test=1
|
dismiss_test=1
|
||||||
|
Loading…
Reference in New Issue
Block a user