Feat run openqa tests #100

Merged
tcooper merged 3 commits from feat_run_openqa_tests into develop 2022-05-20 02:37:35 +00:00
tcooper commented 2022-05-18 01:17:04 +00:00 (Migrated from github.com)

Description

This PR adds minor functionality to run_openqa_tests.sh enabling override of defaults with ENV vars supplied on the command line.

How Has This Been Tested?

[rocky@openqa-dev rocky]$ ./run-openqa-tests.sh
# openqa-cli api -X POST isos ISO=Rocky-8.6-x86_64-boot.iso ARCH=x86_64 DISTRI=rocky FLAVOR=boot-iso VERSION=8.6 BUILD=8.6_boot-iso_20220517.180642.0 PACKAGE_SET=minimal IDENTIFICATION=false ''
{"count":4,"failed":[],"ids":[318,319,320,321],"scheduled_product_id":72}
[rocky@openqa-dev rocky]$ ROCKY_FLAVOR=minimal-iso ROCKY_PACKAGE_SET=server ROCKY_EXTRA_ARGS='TEST=install_package_set_server' ./run-openqa-tests.sh
# openqa-cli api -X POST isos ISO=Rocky-8.6-x86_64-minimal.iso ARCH=x86_64 DISTRI=rocky FLAVOR=minimal-iso VERSION=8.6 BUILD=8.6_minimal-iso_20220517.181610.0 PACKAGE_SET=server IDENTIFICATION=false TEST=install_package_set_server
{"count":1,"failed":[],"ids":[328],"scheduled_product_id":78}
[rocky@openqa-dev rocky]$ ROCKY_FLAVOR=dvd-iso ROCKY_PACKAGE_SET=graphical-server ROCKY_EXTRA_ARGS='TEST=install_package_set_graphical-server' ./run-openqa-tests.sh
# openqa-cli api -X POST isos ISO=Rocky-8.6-x86_64-dvd1.iso ARCH=x86_64 DISTRI=rocky FLAVOR=dvd-iso VERSION=8.6 BUILD=8.6_dvd-iso_20220517.181348.0 PACKAGE_SET=graphical-server IDENTIFICATION=false TEST=install_package_set_graphical-server
{"count":2,"failed":[],"ids":[326,327],"scheduled_product_id":77}

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
# Description This PR adds minor functionality to `run_openqa_tests.sh` enabling override of defaults with ENV vars supplied on the command line. # How Has This Been Tested? ```bash [rocky@openqa-dev rocky]$ ./run-openqa-tests.sh # openqa-cli api -X POST isos ISO=Rocky-8.6-x86_64-boot.iso ARCH=x86_64 DISTRI=rocky FLAVOR=boot-iso VERSION=8.6 BUILD=8.6_boot-iso_20220517.180642.0 PACKAGE_SET=minimal IDENTIFICATION=false '' {"count":4,"failed":[],"ids":[318,319,320,321],"scheduled_product_id":72} ``` ```bash [rocky@openqa-dev rocky]$ ROCKY_FLAVOR=minimal-iso ROCKY_PACKAGE_SET=server ROCKY_EXTRA_ARGS='TEST=install_package_set_server' ./run-openqa-tests.sh # openqa-cli api -X POST isos ISO=Rocky-8.6-x86_64-minimal.iso ARCH=x86_64 DISTRI=rocky FLAVOR=minimal-iso VERSION=8.6 BUILD=8.6_minimal-iso_20220517.181610.0 PACKAGE_SET=server IDENTIFICATION=false TEST=install_package_set_server {"count":1,"failed":[],"ids":[328],"scheduled_product_id":78} ``` ```bash [rocky@openqa-dev rocky]$ ROCKY_FLAVOR=dvd-iso ROCKY_PACKAGE_SET=graphical-server ROCKY_EXTRA_ARGS='TEST=install_package_set_graphical-server' ./run-openqa-tests.sh # openqa-cli api -X POST isos ISO=Rocky-8.6-x86_64-dvd1.iso ARCH=x86_64 DISTRI=rocky FLAVOR=dvd-iso VERSION=8.6 BUILD=8.6_dvd-iso_20220517.181348.0 PACKAGE_SET=graphical-server IDENTIFICATION=false TEST=install_package_set_graphical-server {"count":2,"failed":[],"ids":[326,327],"scheduled_product_id":77} ``` # Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] Any dependent changes have been merged and published in downstream modules
akatch (Migrated from github.com) approved these changes 2022-05-18 03:11:00 +00:00
akatch (Migrated from github.com) left a comment

Nice enhancement!

Nice enhancement!
akatch (Migrated from github.com) commented 2022-05-18 03:10:24 +00:00

TIL!

TIL!
lumarel (Migrated from github.com) approved these changes 2022-05-18 10:33:21 +00:00
lumarel (Migrated from github.com) left a comment

I'm not the best one in reading bash, but looks like a pretty good enhancement 👌🏻 (and LGTM)

I'm not the best one in reading bash, but looks like a pretty good enhancement 👌🏻 (and LGTM)
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: testing/os-autoinst-distri-rocky-migrated#100
No description provided.