mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Debug tests output
This commit is contained in:
parent
55f219224c
commit
1f885ee091
3 changed files with 7 additions and 5 deletions
4
.github/workflows/test-linux.yml
vendored
4
.github/workflows/test-linux.yml
vendored
|
@ -51,10 +51,6 @@ jobs:
|
|||
echo "DGM pip test for distro-slug ${{ inputs.distro-slug }}"
|
||||
echo "DGM doing break-system-packages for distro-slug ${{ inputs.distro-slug }}"
|
||||
python3 -m pip install --break-system-packages -r tests/requirements.txt
|
||||
else
|
||||
echo "DGM plain pip for distro-slug ${{ inputs.distro-slug }}"
|
||||
python3 -m pip install -r tests/requirements.txt
|
||||
fi
|
||||
|
||||
- name: Install Python Dependencies without pip breakage
|
||||
if: ${{ ( inputs.distro-slug != 'debian-11' ) && ( inputs.distro-slug != 'debian-12' ) && ( inputs.distro-slug != 'debian-13' ) && ( inputs.distro-slug != 'ubuntu-2404' ) }}
|
||||
|
|
|
@ -634,7 +634,9 @@ if [ "$ITYPE" = "latest" ] || [ "$ITYPE" = "default" ]; then
|
|||
ONEDIR_REV="latest"
|
||||
_ONEDIR_REV="latest"
|
||||
ITYPE="onedir"
|
||||
shift
|
||||
if [ "$#" -gt 0 ];then
|
||||
shift
|
||||
fi
|
||||
echodebug "using ITYPE onedir for input 'latest' or 'default', cmd args left ,$#,"
|
||||
|
||||
# If doing a git install, check what branch/tag/sha will be checked out
|
||||
|
|
|
@ -26,6 +26,10 @@ def run_salt_call(cmd):
|
|||
"""
|
||||
cmd.append("--out=json")
|
||||
result = subprocess.run(cmd, capture_output=True, text=True)
|
||||
print(
|
||||
f"DGM run_salt_call, cmd '{cmd}', result '{result}', stdout '{result.stdout}'",
|
||||
flush=True,
|
||||
)
|
||||
json_data = json.loads(result.stdout)
|
||||
return json_data["local"]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue