From 638fab02bd84873b149f996d6df72692dde6ad52 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 3 Oct 2018 14:59:58 -0400 Subject: [PATCH] tests: Add a test for inheritance order of `postprocess` Since I got it backwards when rewriting it in Rust. Closes: #1574 Approved by: jlebon --- tests/compose-tests/test-misc-tweaks.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/compose-tests/test-misc-tweaks.sh b/tests/compose-tests/test-misc-tweaks.sh index 277acc1e..3c2e6ff5 100755 --- a/tests/compose-tests/test-misc-tweaks.sh +++ b/tests/compose-tests/test-misc-tweaks.sh @@ -24,6 +24,8 @@ pysetjsonmember "postprocess-script" \"$PWD/postprocess.sh\" pysetjsonmember "postprocess" '["""#!/bin/bash touch /usr/share/postprocess-testing""", """#!/bin/bash +set -xeuo pipefail +touch /usr/share/included-postprocess-test rm /usr/share/postprocess-testing touch /usr/share/postprocess-testing-done"""]' cat > postprocess.sh << EOF @@ -45,6 +47,18 @@ echo baz > composedata/baz.txt # Test tmp-is-dir pysetjsonmember "tmp-is-dir" 'True' +new_treefile=composedata/fedora-misc-tweaks-includer.yaml +cat > ${new_treefile} <