Page MenuHomeFreeBSD

D62233.1796277806.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D62233.1796277806.diff

diff --git a/usr.sbin/pkg/tests/pkg_test.sh b/usr.sbin/pkg/tests/pkg_test.sh
--- a/usr.sbin/pkg/tests/pkg_test.sh
+++ b/usr.sbin/pkg/tests/pkg_test.sh
@@ -4,14 +4,14 @@
# SPDX-License-Identifier: BSD-2-Clause
#
+: ${LOCALBASE:=$(sysctl -n user.localbase)}
+: ${LOCALBASE:=/usr/local}
+pkg8=${LOCALBASE}/sbin/pkg
+
pkg_prepare()
{
- : ${LOCALBASE:=$(sysctl -n user.localbase)}
- : ${LOCALBASE:=/usr/local}
pkg7=$(command -pv pkg)
- pkg8=${LOCALBASE}/sbin/pkg
atf_check test -x "${pkg7}"
- atf_check test -x "${pkg8}"
atf_check test ! "${pkg7}" -ef "${pkg8}"
}
@@ -19,6 +19,7 @@
activation_head()
{
atf_set descr "Activation test without jail or root"
+ atf_set require.progs "${pkg8}"
}
activation_body()
{
@@ -39,6 +40,7 @@
atf_set descr "Activation test with jail"
atf_set require.user "root"
atf_set require.files "/rescue/sh"
+ atf_set require.progs "${pkg8}"
}
activation_jail_body()
{
@@ -90,6 +92,7 @@
activation_root_head()
{
atf_set descr "Activation test with root"
+ atf_set require.progs "${pkg8}"
}
activation_root_body()
{
@@ -129,6 +132,7 @@
{
atf_set descr "Install pkg in a jail"
atf_set require.user "root"
+ atf_set require.progs "${pkg8}"
}
add_jail_body()
{
@@ -162,6 +166,7 @@
{
atf_set descr "Install pkg in a root"
atf_set require.user "root"
+ atf_set require.progs "${pkg8}"
}
add_root_body()
{
@@ -179,6 +184,7 @@
config_head()
{
atf_set descr "Verify that pkg passes on configuration options"
+ atf_set require.progs "${pkg8}"
}
config_body()
{

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 3, 6:03 AM (8 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42136591
Default Alt Text
D62233.1796277806.diff (1 KB)

Event Timeline