certctl(8): Exit nonzero on missing certs.conf.
This commit is contained in:
parent
e1aab3dc32
commit
3d4f065740
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
# $NetBSD: t_certctl.sh,v 1.2 2023/08/28 22:25:21 riastradh Exp $
|
||||
# $NetBSD: t_certctl.sh,v 1.3 2023/08/28 22:25:32 riastradh Exp $
|
||||
#
|
||||
# Copyright (c) 2023 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
|
@ -330,7 +330,6 @@ missingconf_body()
|
|||
{
|
||||
mkdir certs
|
||||
atf_check -s exit:0 test ! -e certs.conf
|
||||
atf_expect_fail 'wrong exit code on missing config file'
|
||||
atf_check -s not-exit:0 -e match:'certs\.conf' \
|
||||
$CERTCTL rehash
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
# $NetBSD: certctl.sh,v 1.1 2023/08/26 05:27:15 riastradh Exp $
|
||||
# $NetBSD: certctl.sh,v 1.2 2023/08/28 22:25:32 riastradh Exp $
|
||||
#
|
||||
# Copyright (c) 2023 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
|
@ -234,7 +234,7 @@ configure()
|
|||
error "$vconfig:$lineno: unknown command: $vop"
|
||||
;;
|
||||
esac
|
||||
done <$config
|
||||
done <$config || status=$?
|
||||
|
||||
return $status
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue