Also report set -u used in remove, making some remove crash ...

This commit is contained in:
Alexandre Aubin 2021-03-14 18:40:39 +01:00
parent 6ce44da797
commit 0b1aa10e44

View file

@ -1341,7 +1341,7 @@ class Script(TestSuite):
def error_handling(self): def error_handling(self):
if self.name in ["backup", "remove", "_common.sh"]: if self.name in ["backup", "remove", "_common.sh"]:
present = self.contains("ynh_abort_if_errors") or self.contains("set -eu") present = self.contains("ynh_abort_if_errors") or self.contains("set -eu") or self.contains("set -u")
else: else:
present = self.contains("ynh_abort_if_errors") present = self.contains("ynh_abort_if_errors")