Skip to content

Commit

Permalink
test: black-box: fix for non debian distributions
Browse files Browse the repository at this point in the history
GNU Inteutils and net-tools hostname implementations don't support `-A`.
Looks like this is available on debian only. Use the hostid tool instead.
  • Loading branch information
rhubert committed Dec 31, 2024
1 parent 08f9fb0 commit c8d06fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/black-box/fingerprints/recipes/sandbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ multiPackage:
- name: sandbox-image-2
use: [sandbox]
fingerprintIf: True
fingerprintScript: "hostname -A"
fingerprintScript: "hostid"
buildScript: |
cp /id.txt . 2>/dev/null || hostname -A > id.txt
cp /id.txt . 2>/dev/null || hostid > id.txt
packageScript: |
cp -a $1/* .
Expand Down

0 comments on commit c8d06fd

Please sign in to comment.