summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-05-06 17:49:02 +0100
committerLars Wirzenius <liw@liw.fi>2012-05-06 17:49:02 +0100
commit5ed7f9b8c386615c7d429561faadddea98576b54 (patch)
treeeae1a324b47a95249d133bfa7f906e4750e9bb45
parente84b080a163eddef0dfb775a1253798c8130697c (diff)
downloadobnam-5ed7f9b8c386615c7d429561faadddea98576b54.tar.gz
Fix convert5to6 black box test
Summain was including user/group information in the manifest, which meant the test would only ever work for username liw, uid 1000, group liw, gid 1000.
-rw-r--r--NEWS2
-rw-r--r--test-data/repo-format-5-encrypted-gzipped.tar.gzbin12645 -> 12617 bytes
-rwxr-xr-xtests/convert5to6.script3
3 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index ee74bdb8..8fb603be 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,8 @@ Version 0.28, released UNRELEASED; a BETA release
Previously, Obnam would continue, ignoring the failure to write. If you
make space in the repository and restart Obnam, it will continue from
the previous checkpoint.
+* The convert5to6 black box test now works even if run by other people
+ than liw.
Version 0.27, released 2012-04-30; a BETA release
-------------------------------------------------
diff --git a/test-data/repo-format-5-encrypted-gzipped.tar.gz b/test-data/repo-format-5-encrypted-gzipped.tar.gz
index 1b90616a..6d97ad0b 100644
--- a/test-data/repo-format-5-encrypted-gzipped.tar.gz
+++ b/test-data/repo-format-5-encrypted-gzipped.tar.gz
Binary files differ
diff --git a/tests/convert5to6.script b/tests/convert5to6.script
index eccfe0f4..7dfe3f74 100755
--- a/tests/convert5to6.script
+++ b/tests/convert5to6.script
@@ -26,6 +26,7 @@ tar -xf "$SRCDIR/test-data/repo-format-5-encrypted-gzipped.tar.gz"
"$SRCDIR/tests/obnam" restore \
-r repo --encrypt-with=1B321347 --compress-with=gzip --to=restored
(cd "restored/home/liw/obnam/convert-5to6/t" &&
- summain data) > restored.summain
+ summain --exclude=Username --exclude=Uid --exclude=Group --exclude=Gid data) \
+ > restored.summain
diff -u data.summain restored.summain