rpm-ostree/tests/compose-tests
Timothée Ravier 241c9f508f postprocess: Quote OSTREE_VERSION value
Use g_shell_quote to quote the value set for OSTREE_VERSION in
/etc/os-release as this is an arbitrary string set at compose time that
may contain whitespace or other special characters.

This edge case was found in [0] as the compose are built with the
following command:

  $ rpm-ostree compose tree \
      --repo="repo" \
      --cachedir="cache" \
      --add-metadata-string="version=Kinoite 30.23" \
      "fedora-kinoite.yaml"

[0] https://discussion.fedoraproject.org/t/kinoite-a-kde-and-now-xfce-version-of-fedora-silverblue/147/95

Signed-off-by: Timothée Ravier <tim@siosm.fr>

Closes: #1873
Approved by: jlebon
2019-07-25 07:44:43 +00:00
..
libbasic-test.sh compose: Add --parent option 2019-07-19 13:20:42 +00:00
libcomposetest.sh tests/compose: Add RPMOSTREE_TMPDIR_LOCATION 2019-05-09 02:10:27 +00:00
run-test.sh tests/compose: Fix run-test.sh regression 2018-08-07 16:00:13 +00:00
test-basic-unified.sh compose: Add --parent option 2019-07-19 13:20:42 +00:00
test-basic.sh compose: Add --parent option 2019-07-19 13:20:42 +00:00
test-boot-location-modules.sh compose: Add boot-location: modules 2019-03-08 22:49:40 +00:00
test-boot-location-new.sh tests/compose: f is valid in a hex checksum 2018-02-13 17:26:54 +00:00
test-install-langs.sh postprocess: Unlink our treecompose-post out of the final /bin 2017-08-31 03:06:11 +00:00
test-installroot.sh compose: Remove support for boot-location: both 2019-03-08 22:49:40 +00:00
test-lockfile.sh lockfile: Allow omitting the digest 2019-07-18 18:54:27 +00:00
test-machineid-compat.sh tests/compose: Use workdir in tmpdir 2018-10-23 13:40:46 +00:00
test-misc-tweaks.sh treefile: Support multiple includes 2019-07-18 22:40:59 +00:00
test-mutate-os-release.sh postprocess: Quote OSTREE_VERSION value 2019-07-25 07:44:43 +00:00
test-rojig-e2e.sh ci: Bump to f29 2019-03-19 12:19:38 +00:00
test-rojig-pure.sh ci: Bump to f29 2019-03-19 12:19:38 +00:00
test-write-commitid.sh compose: Support not specifying a ref 2018-10-09 19:47:25 +00:00