From e771a99cf0c27456df7833ff2a3b406247ac70a8 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. --- 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 277acc1e52..3c2e6ff5dd 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} <