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>
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>
- 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>
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>