Wrap the attempt to rmdir in an if statement, otherwise the entire test process exists (errexit is set). This test expects the rmdir to fail.
Wrap the attempt to rmdir in an if statement, otherwise the entire test process exists (errexit is set). This test expects the rmdir to fail.