Skip to content

Commit

Permalink
Diagnostic #7
Browse files Browse the repository at this point in the history
  • Loading branch information
boukeas committed Jun 20, 2024
1 parent 687bda8 commit 66c1140
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/testflinger_submit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,11 @@ jobs:
- name: Checkout tools repo
uses: actions/checkout@v4
- name: Diagnostic
continue-on-error: true
run: |
hostname -I
# if this works, better change the action
#status=$(curl -k -w "%{http_code}\n" -o /dev/null -s https://testflinger.canonical.com)
#error=$?
#[ $error -eq 0 ] && echo status=$status || echo error=$error
cat > ${{ github.workspace }}/job.yaml << EOF
job_queue: rpi4b1g-001
test_data:
test_cmds: |
ls -alR
EOF
sudo snap install testflinger-cli
testflinger submit ${{ github.workspace }}/job.yaml
status=$(curl -I -w "%{http_code}\n" -o /dev/null -s https://testflinger.canonical.com/agents)
error=$?
[ $error -eq 0 ] && echo status=$status || echo error=$error
- name: Submit job
uses: canonical/testflinger/.github/actions/submit@main
with:
Expand Down

0 comments on commit 66c1140

Please sign in to comment.