Commit Graph

25 Commits

Author SHA1 Message Date
Matthew Stidham
b09daaa945 run_cv_scenario: Remove unused variable names
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-12-06 15:10:56 -08:00
Matthew Stidham
d7efd606c9 run_cv_scenario: Fix whitespace
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-24 17:23:51 -08:00
Matthew Stidham
6c7aff23df run_cv_scenario: Remove trailing semicolons
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-24 17:23:25 -08:00
Jed Reynolds
8b86e89033 run_cv_scenario: lists test instances and does prints thenm out
Fixes example in argparse as well.

Signed-off-by: Jed Reynolds <jed@bitratchet.com>
2021-11-08 14:56:10 -08:00
Jed Reynolds
2f72736e56 run_cv_scenario.py: logic can handle a "cv list_instances"
Instance names are in the [warnings] block of the response

Signed-off-by: Jed Reynolds <jed@bitratchet.com>
2021-11-08 13:40:53 -08:00
Jed Reynolds
df78928b62 run_cv_scenario.py: renames method from refresh() to wait_for_db_load_and_sync()
Signed-off-by: Jed Reynolds <jed@bitratchet.com>
2021-10-05 09:37:34 -07:00
Jed Reynolds
ad188af0ba run_cv_scenario.py: adds more timing and refresh logic
Use the refresh() method between loading databases to force updates of text blobs, DUTs and profiles.
Look for last-updated times so as to not wait overly long for text blobs to update.
Adds more cv sync calls to make sure that CV has gotten refreshed.

Signed-off-by: Jed Reynolds <jed@bitratchet.com>
2021-10-01 15:24:03 -07:00
Matthew Stidham
4e7e8b9360 1. Updating argparse commands so they include flags
2. Create check_argparse which allows us to check which flags are or are not included in argparse statements.

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-09-21 16:13:07 -07:00
Matthew Stidham
36400e003d Making it so that lanforge-scripts can work if the repository isn't named exactly the same way
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-09-17 15:29:15 -07:00
erinnerim
1d7578251c Updates to import statements:
- Import importlib, os, and sys to each python script.
 - Append "lanforge-scripts" root directory to the system path, allowing each script to be called from an antecedent directory. e.g.
if 'lanforge-scripts' not in sys.path:
    sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../../../")))
 - All statements of the form 'from <module> import <class>' replace with:
<module> = importlib.import_module("lanforge-scripts.<directory>.<module>")
<class> = <module>.<class>
2021-09-15 16:17:16 -07:00
Chuck SmileyRekiere
743b5f56c9 Revert "Update py_scripts to be in line with pip standards"
This reverts commit 37df48594e.
2021-09-09 05:32:05 -06:00
Matthew Stidham
37df48594e Update py_scripts to be in line with pip standards
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-09-08 16:57:10 -07:00
Jed Reynolds
40806ac421 run_cv_scenario.py: adds CLI option for --debug
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-07-29 16:53:21 -07:00
Chuck SmileyRekiere
6847d8297a run_cv_scenario.py rvr_scenario.py update_dut.py : deprecated _halt_on_error 2021-04-22 14:40:26 -06:00
Ben Greear
57a40d7668 cv-scripts: create tests with 'do not load old cfg' option.
This puts test in known state each time.  Requires code I just
committed to the GUI to function properly.

Also, add a sleep after submitting and requesting text
blobs (bad me, will have to find a better way to do this
in the future so that we don't depend on sleep and
races).

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-13 18:08:23 -07:00
Jed Reynolds
3abc7b9db2 run_cv_scenario.py: successfully runs and closes RvR report 2020-07-01 23:01:32 -07:00
Jed Reynolds
2747fba661 GUI: run_cv_scenario.py: longer naps between commands helps test sync up at start; fixes missing commas 2020-07-01 17:00:28 -07:00
Jed Reynolds
2c2e5de77e run_cv_scenario.py: adds more commands to automation script 2020-06-30 15:34:28 -07:00
Jed Reynolds
3b920d03b6 run_cv_scenario.py: adds sleep command 2020-06-30 14:25:55 -07:00
Jed Reynolds
f7998e3df0 run_cv_scenario.py: quieter 2020-06-30 14:25:55 -07:00
Jed Reynolds
fa391f601d JSON: wip: run cv scenario 2020-06-29 23:18:50 -07:00
Jed Reynolds
b851933f98 run_cv_scenario.py: WIP: working on checking post results of 'is_built' 2020-06-29 19:38:02 -07:00
Jed Reynolds
f4805a4a98 JSON: run_cv_scenario: now able to bring up CV scenario 2020-06-29 14:20:08 -07:00
Jed Reynolds
367ceb439a JSON: cv automation script 2020-06-25 20:03:13 -07:00
Jed Reynolds
061812e09b JSON: WIP: creates gui automation test for rvr 2020-06-25 12:32:28 -07:00