From 236d70e687e1a1ed4339eadb00817fd793799496 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Mon, 20 Nov 2023 15:44:18 -0500 Subject: [PATCH] test: Fix test failure due to .coverage changing during tar creation. (#557) This seems to be a transient failure, but is legitimate issue. When coverage binary is being used, this test case could fail with: # + mkdir /output # + tar -cf /output/installer-iso.tar -C /stacker . # tar: ./.coverage: file changed as we read it The /stacker/.coverage file was being updated by the stacker binary itself. This is just a race condition based on when the file gets written to and when it was being collected by tar. The change is just to only have tar collect the .cpio files. Signed-off-by: Scott Moser --- test/dependency-order.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/dependency-order.bats b/test/dependency-order.bats index 202f24cc..b00a3c6d 100644 --- a/test/dependency-order.bats +++ b/test/dependency-order.bats @@ -81,7 +81,7 @@ installer-iso-build: #!/bin/bash -ex # populate the iso mkdir /output - tar -cf /output/installer-iso.tar -C /stacker . + ( cd /stacker/imports && tar -cf /output/installer-iso.tar *.cpio ) atomix-installer-iso: from: