From 81161461c261ca3cccba496cacf7d394a088c1fb Mon Sep 17 00:00:00 2001 From: GnomeZworc Date: Sun, 4 Oct 2026 19:37:57 +0200 Subject: [PATCH] =?UTF-8?q?f-50:=20lab:=20seedfrom=20avec=20barre=20obliqu?= =?UTF-8?q?e=20finale,=20push=20sans=20propri=C3=A9taire,=20r=C3=A9sultats?= =?UTF-8?q?=20d'E4=20#50?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: GnomeZworc --- scripts/lab-host.sh | 2 +- scripts/lab-host_test.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/lab-host.sh b/scripts/lab-host.sh index a0d1f7b..d06c1d7 100755 --- a/scripts/lab-host.sh +++ b/scripts/lab-host.sh @@ -337,7 +337,7 @@ push_file () { push_dir () { local SOURCE="${1}" COPYFILE_DISABLE=1 tar --no-xattrs -C "${SOURCE}" -cf - . \ - | ssh_run -- "rm -rf topology.part && mkdir topology.part && tar -C topology.part -xf - && rm -rf topology && mv topology.part topology" + | ssh_run -- "rm -rf topology.part && mkdir topology.part && tar -C topology.part --no-same-owner -xf - && rm -rf topology && mv topology.part topology" } cmd_push () { diff --git a/scripts/lab-host_test.sh b/scripts/lab-host_test.sh index 1e82388..9953579 100755 --- a/scripts/lab-host_test.sh +++ b/scripts/lab-host_test.sh @@ -671,7 +671,7 @@ test_push_builds_for_linux_and_sends_binary_and_topology () { [[ $(cat "${WORK}/go.log") == "${REPO}|build -o ${WORK}/.cache/two-lab/lab ./cmd/lab|CGO_ENABLED=0 GOOS=linux GOARCH=amd64" ]] \ || fail "compilation : $(cat "${WORK}/go.log")" grep -q "debian@203.0.113.7 cat > 'lab.part' && chmod 755 'lab.part' && mv 'lab.part' 'lab'" "${WORK}/ssh.log" || fail "envoi de lab absent" - grep -q "debian@203.0.113.7 rm -rf topology.part && mkdir topology.part && tar -C topology.part -xf - && rm -rf topology && mv topology.part topology" "${WORK}/ssh.log" \ + grep -q "debian@203.0.113.7 rm -rf topology.part && mkdir topology.part && tar -C topology.part --no-same-owner -xf - && rm -rf topology && mv topology.part topology" "${WORK}/ssh.log" \ || fail "envoi du répertoire absent" [[ $(cat "${WORK}/pushed.1") == "binaire-lab" ]] || fail "contenu de lab : $(cat "${WORK}/pushed.1")" LISTING=$(tar -tf "${WORK}/pushed.2" | sed 's|^\./||' | grep -v '/$' | grep -v '^$' | sort | tr '\n' ' ')