-
Notifications
You must be signed in to change notification settings - Fork 31
BT_SCAN_PAIR: move arg parsing into run.sh, simplify YAML, add numeric knob validation #208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| metadata: | ||
| name: bt-on-off | ||
| format: "Lava-Test Test Definition 1.0" | ||
| description: "Toggle Bluetooth on/off using qcom-linux-testkit BT_ON_FF" | ||
| os: | ||
| - linux | ||
| scope: | ||
| - functional | ||
|
|
||
| run: | ||
| steps: | ||
| - cd Runner | ||
| - REPO_ROOT="$PWD" | ||
| - RPATH="$REPO_ROOT/suites/Connectivity/Bluetooth/BT_ON_FF/run.sh" | ||
| - RESFILE="$REPO_ROOT/suites/Connectivity/Bluetooth/BT_ON_FF/BT_ON_FF.res" | ||
| - rm -f "$RESFILE" 2>/dev/null || true | ||
| - "$RPATH" || true | ||
| - "$REPO_ROOT/utils/send-to-lava.sh" "$RESFILE" || true | ||
| - "$REPO_ROOT/utils/result_parse.sh" || true | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| metadata: | ||
| name: bt-scan-pair | ||
| format: "Lava-Test Test Definition 1.0" | ||
| description: "Pair/connect to a BT device using qcom-linux-testkit BT_SCAN_PAIR" | ||
| os: | ||
| - Yocto | ||
| - Ubuntu | ||
| - Debina | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. typo |
||
| scope: | ||
| - functional | ||
|
|
||
| params: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it would be useful to add a comment saying that the script uses these parameters from environment. |
||
| bt_mac: "" | ||
| bt_name: "" | ||
| whitelist: "" | ||
| pair_retries: "3" | ||
| scan_attempts: "2" | ||
|
|
||
| run: | ||
| steps: | ||
| - cd qcom-linux-testkit/Runner/suites/Connectivity/Bluetooth/BT_SCAN_PAIR | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it should be Tried to run it here: https://lava.infra.foundries.io/scheduler/job/114175 |
||
| - ./run.sh | ||
| - ../../../../utils/send-to-lava.sh ./BT_SCAN_PAIR.res || true | ||
| - ../../../../utils/result_parse.sh || true | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YAML parser doesn't like these variable substitutions: