[ostree] test-basic: Always chown back before doing assertion
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] test-basic: Always chown back before doing assertion
- Date: Thu, 14 May 2015 02:18:48 +0000 (UTC)
commit 2c526046d803f1826ba873e8fad9a891f6260ce0
Author: Colin Walters <walters verbum org>
Date: Wed May 13 22:17:26 2015 -0400
test-basic: Always chown back before doing assertion
Sometimes I rerun the tests for debugging in the same directory, and
having it be not writable breaks `rm * -rf`.
tests/basic-test.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/basic-test.sh b/tests/basic-test.sh
index 834e76d..3b57f66 100755
--- a/tests/basic-test.sh
+++ b/tests/basic-test.sh
@@ -396,8 +396,8 @@ if test "$(id -u)" != "0"; then
$OSTREE init --mode=archive-z2 --repo=repo-noperm
chmod -w repo-noperm/objects
$OSTREE --repo=repo-noperm pull-local repo 2> error-message || touch expected-fail
+ chmod +w repo-noperm/objects
assert_has_file expected-fail
assert_file_has_content error-message "Permission denied"
- chmod +w repo-noperm/objects
echo "ok unwritable repo was caught"
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]