mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2026-01-07 21:01:37 +00:00
fix testbed array input
Signed-off-by: Max Brenner <xamrennerb@gmail.com>
This commit is contained in:
13
.github/workflows/performance.yml
vendored
13
.github/workflows/performance.yml
vendored
@@ -20,7 +20,7 @@ on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
testbeds:
|
||||
default: '["basic-01","basic-02"]'
|
||||
default: 'basic-01,basic-02'
|
||||
description: 'Testbed(s) to test'
|
||||
required: false
|
||||
|
||||
@@ -117,12 +117,11 @@ jobs:
|
||||
- name: generate-matrix
|
||||
id: set-matrix
|
||||
run: |
|
||||
set -x
|
||||
TESTBEDS="${{ github.event.inputs.testbeds || '[\"basic-01\",\"basic-02\"]' }}"
|
||||
echo "$TESTBEDS"
|
||||
TESTBED_ARRAY=$(echo "$TESTBEDS" | jq -c 'map({"testbed":.})')
|
||||
echo "$TESTBED_ARRAY"
|
||||
echo "::set-output name=matrix::{\"include\":${TESTBED_ARRAY}}"
|
||||
TESTBEDS="${{ github.event.inputs.testbeds || 'basic-01,basic-02' }}"
|
||||
# convert to JSON array
|
||||
TESTBEDS=$(echo $TESTBEDS | sed "s/,/\",\"/g" | sed 's/^/[\"/g' | sed 's/$/\"]/g')
|
||||
TESTBEDS=$(echo "$TESTBEDS" | jq -c 'map({"testbed":.})')
|
||||
echo "::set-output name=matrix::{\"include\":${TESTBEDS}}"
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
12
.github/workflows/sanity.yml
vendored
12
.github/workflows/sanity.yml
vendored
@@ -20,7 +20,7 @@ on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
testbeds:
|
||||
default: '["basic-01","basic-02"]'
|
||||
default: 'basic-01,basic-02'
|
||||
description: 'Testbed(s) to test'
|
||||
required: false
|
||||
marker_expression:
|
||||
@@ -123,12 +123,10 @@ jobs:
|
||||
- name: generate-matrix
|
||||
id: set-matrix
|
||||
run: |
|
||||
set -x
|
||||
TESTBEDS="${{ github.event.inputs.testbeds || '[\"basic-01\",\"basic-02\"]' }}"
|
||||
echo "$TESTBEDS"
|
||||
TESTBED_ARRAY=$(echo "$TESTBEDS" | jq -c 'map({"testbed":.})')
|
||||
echo "$TESTBED_ARRAY"
|
||||
echo "::set-output name=matrix::{\"include\":${TESTBED_ARRAY}}"
|
||||
TESTBEDS="${{ github.event.inputs.testbeds || 'basic-01,basic-02' }}"
|
||||
TESTBEDS=$(echo $TESTBEDS | sed "s/,/\",\"/g" | sed 's/^/[\"/g' | sed 's/$/\"]/g')
|
||||
TESTBEDS=$(echo "$TESTBEDS" | jq -c 'map({"testbed":.})')
|
||||
echo "::set-output name=matrix::{\"include\":${TESTBEDS}}"
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user