summaryrefslogtreecommitdiff
path: root/tests/pull-test2.sh
diff options
context:
space:
mode:
authorJeremy Bicha <jbicha@ubuntu.com>2019-02-10 20:54:05 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2019-02-11 13:26:32 +0000
commit1ec4945c2d6b410c6fea460e2121d1f7da80a9f2 (patch)
tree5870f7c02e3a57a560dc4c026b5840d455025793 /tests/pull-test2.sh
parentf7a0ec9bf7808b1ca67ad386b24d8d58c424eb99 (diff)
downloadostree-1ec4945c2d6b410c6fea460e2121d1f7da80a9f2.tar.gz
tests: Update for glib 2.59.2
glib 2.59.2 uses a non-breaking space instead of a space to separate the quantity and unit in g_format_size() so update our test to handle both a plain space and a non-breaking space. See https://gitlab.gnome.org/GNOME/glib/issues/1625 Closes: #1818 Approved by: cgwalters
Diffstat (limited to 'tests/pull-test2.sh')
-rw-r--r--tests/pull-test2.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/pull-test2.sh b/tests/pull-test2.sh
index 2b9889c2..1d91e514 100644
--- a/tests/pull-test2.sh
+++ b/tests/pull-test2.sh
@@ -55,7 +55,7 @@ ${CMD_PREFIX} ostree --repo=ostree-srv/repo static-delta generate ${remote_ref}
${CMD_PREFIX} ostree --repo=ostree-srv/repo summary -u
${CMD_PREFIX} ostree --repo=repo pull origin ${remote_ref}@${prev_rev}
${CMD_PREFIX} ostree --repo=repo pull --dry-run --require-static-deltas origin ${remote_ref} >dry-run-pull.txt
-assert_file_has_content dry-run-pull.txt 'Delta update: 0/1 parts, 0 bytes/[45][0-9].[0-9] kB, 1.[678] MB total uncompressed'
+assert_file_has_content dry-run-pull.txt 'Delta update: 0/1 parts, 0 bytes/[45][0-9].[0-9][  ]kB, 1.[678][  ]MB total uncompressed'
${CMD_PREFIX} ostree --repo=repo pull --require-static-deltas origin ${remote_ref}
final_rev=$(${CMD_PREFIX} ostree --repo=repo rev-parse origin:${remote_ref})
assert_streq "${rev}" "${final_rev}"