Changed bench target, stlink serial and added error for testing the run (#2275)

* changed bench target, stlink serial and added error for testing the run
* changed flipper name for macos and changed serial aquisition for device manager
* tested broken pipeline, reverting test data
* added timeout-minutes, testing if its int or float

Co-authored-by: Konstantin Volkov <k.volkov@flipperdevices.com>
Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Konstantin Volkov 2023-01-30 15:59:45 +07:00 committed by GitHub
parent 5db7fdf985
commit 7f3ebcd110
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -56,6 +56,7 @@ jobs:
- name: 'Run units and validate results'
id: run_units
if: steps.copy.outcome == 'success'
timeout-minutes: 2.5
run: |
source scripts/toolchain/fbtenv.sh
python3 scripts/testing/units.py ${{steps.device.outputs.flipper}}

View File

@ -10,7 +10,7 @@ env:
jobs:
test_updater_on_bench:
runs-on: [self-hosted, FlipperZeroTest] # currently on same bench as units, needs different bench
runs-on: [self-hosted, FlipperZeroTestMac1]
steps:
- name: 'Decontaminate previous build leftovers'
run: |
@ -27,7 +27,8 @@ jobs:
- name: 'Get flipper from device manager (mock)'
id: device
run: |
echo "flipper=/dev/ttyACM0" >> $GITHUB_OUTPUT
echo "flipper=/dev/tty.usbmodemflip_Rekigyn1" >> $GITHUB_OUTPUT
echo "stlink=0F020D026415303030303032" >> $GITHUB_OUTPUT
- name: 'Flashing target firmware'
id: first_full_flash
@ -67,7 +68,7 @@ jobs:
- name: 'Flash last release'
if: failure()
run: |
./fbt flash OPENOCD_ADAPTER_SERIAL=2A0906016415303030303032 FORCE=1
./fbt flash OPENOCD_ADAPTER_SERIAL=${{steps.device.outputs.stlink}} FORCE=1
- name: 'Wait for flipper and format ext'
if: failure()