tests: Require OSTREE_TEST_SUDO to be set to use `sudo`
authorColin Walters <walters@verbum.org>
Tue, 22 Nov 2022 15:26:44 +0000 (10:26 -0500)
committerColin Walters <walters@verbum.org>
Tue, 22 Nov 2022 15:27:28 +0000 (10:27 -0500)
commit647f7fb7f1c3209810a37cb52c834026960e829b
tree0e45b747ab6fa59c1f6d0aa0ddd84641d325cf68
parent8c831311be595320750310b24dcd03fdf55b7d6f
tests: Require OSTREE_TEST_SUDO to be set to use `sudo`

IMO, tools invoking `sudo` automatically is a huge anti-pattern.
Require this to be opt-in.

In practice also...these tests really want to be *integration*
and not unit tests because involving `sudo` alongside uninstalled
binaries just creates a giant mess.

Closes: https://github.com/ostreedev/ostree/issues/2761
tests/libtest.sh
tests/test-basic-bare-split-xattrs.sh
tests/test-repo-finder-mount-integration.sh