Skip to content

Commit

Permalink
CI: fix hostname test
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Di Maio <[email protected]>
  • Loading branch information
89luca89 committed May 1, 2024
1 parent 8629242 commit 38c7541
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ jobs:
case "${container_name}" in
*init*)
echo "SYSTEMD DETECTED: creating container with --init..."
./distrobox create --yes -i "${image}" --name "${container_name}" --init --unshare-all
./distrobox create --yes -i "${image}" --hostname "${container_name}" --name "${container_name}" --init --unshare-all
;;
*)
./distrobox create --yes -i "${image}" --name "${container_name}"
./distrobox create --yes -i "${image}" --hostname "${container_name}" --name "${container_name}"
;;
esac
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
# Assert that distrobox exported binary indeed works
set -x
command_output="$(./distrobox enter --name "${container_name}" -- uname -n | tr -d '\r' | tr -d '^@')"
expected_output="${container_name}.$(uname -n)"
expected_output="${container_name}"
if [ "$command_output" != "$expected_output" ]; then
exit 1
fi
Expand All @@ -157,7 +157,7 @@ jobs:
# Assert that distrobox exported binary indeed works
set -x
command_output="$(${HOME}/uname -n | tr -d '\r' | tr -d '^@')"
expected_output="${container_name}.$(uname -n)"
expected_output="${container_name}"
if [ "$command_output" != "$expected_output" ]; then
exit 1
fi
Expand All @@ -173,7 +173,7 @@ jobs:
# Assert that distrobox exported binary indeed works
set -x
command_output="$(${HOME}/uname -n | tr -d '\r' | tr -d '^@')"
expected_output="${container_name}.$(uname -n)"
expected_output="${container_name}"
if [ "$command_output" != "$expected_output" ]; then
exit 1
fi
Expand Down

0 comments on commit 38c7541

Please sign in to comment.