diff options
author | Colin Walters <walters@verbum.org> | 2018-03-05 17:31:12 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-03-06 14:01:39 +0000 |
commit | 969e4eb72e9aff95024bc460b2d6b50bce5136f6 (patch) | |
tree | 6af8be1e6e17243e399c6f0387fc44bfa6c54779 /tests/basic-test.sh | |
parent | fe6ae92ebc2940765008e4775d56be39661f3514 (diff) | |
download | ostree-969e4eb72e9aff95024bc460b2d6b50bce5136f6.tar.gz |
repo/refs: Clean up error prefixing
Add some "function global" prefixing in line with what we do in
other places now, and drop the "manual filename" prefixing that
is no longer necessary since
https://github.com/GNOME/libglnx/commit/23f7df15006f14ddc3bc2ddee690f7f8604c3ebe
Closes: https://github.com/ostreedev/ostree/issues/1467
Closes: #1485
Approved by: jlebon
Diffstat (limited to 'tests/basic-test.sh')
-rw-r--r-- | tests/basic-test.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/basic-test.sh b/tests/basic-test.sh index 3376ac58..b8e7eb07 100644 --- a/tests/basic-test.sh +++ b/tests/basic-test.sh @@ -21,7 +21,7 @@ set -euo pipefail -echo "1..$((82 + ${extra_basic_tests:-0}))" +echo "1..$((83 + ${extra_basic_tests:-0}))" CHECKOUT_U_ARG="" CHECKOUT_H_ARGS="-H" @@ -476,6 +476,17 @@ cd ${test_tmpdir} $OSTREE prune echo "ok prune didn't fail" +# https://github.com/ostreedev/ostree/issues/1467 +cd ${test_tmpdir} +mv repo/refs/remotes{,.orig} +if $OSTREE refs --list >/dev/null 2>err.txt; then + fatal "listed refs without remotes dir?" +fi +assert_file_has_content err.txt 'Listing refs.*opendir.*No such file or directory' +mv repo/refs/remotes{.orig,} +$OSTREE refs --list >/dev/null +echo "ok refs enoent error" + cd ${test_tmpdir} # Verify we can't cat dirs for path in / /baz; do |