Fixing whitespace in create_chamberview.py

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
Matthew Stidham
2021-10-11 12:33:13 -07:00
parent 03602df37d
commit 7bd0bc48c9

View File

@@ -41,7 +41,6 @@ if sys.version_info[0] != 3:
print("This script requires Python 3") print("This script requires Python 3")
exit(1) exit(1)
sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../"))) sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../")))
cv_test_manager = importlib.import_module("py-json.cv_test_manager") cv_test_manager = importlib.import_module("py-json.cv_test_manager")
@@ -140,7 +139,7 @@ class CreateChamberview(cv):
Traffic, Traffic,
Freq, Freq,
VLAN VLAN
); # To manage scenario ) # To manage scenario
if not line and not raw_line: if not line and not raw_line:
raise Exception("scenario creation failed") raise Exception("scenario creation failed")
@@ -154,14 +153,14 @@ class CreateChamberview(cv):
self.apply_cv_scenario(scenario_name) # Apply scenario self.apply_cv_scenario(scenario_name) # Apply scenario
self.build_cv_scenario() # build scenario self.build_cv_scenario() # build scenario
tries = 0 tries = 0
while (True): while True:
self.get_popup_info_and_close() self.get_popup_info_and_close()
if not self.get_cv_is_built(): if not self.get_cv_is_built():
# It can take a while to build a large scenario, so wait-time # It can take a while to build a large scenario, so wait-time
# is currently max of 5 minutes. # is currently max of 5 minutes.
print("Waiting %i/300 for Chamber-View to be built." % (tries)) print("Waiting %i/300 for Chamber-View to be built." % tries)
tries += 1 tries += 1
if (tries > 300): if tries > 300:
break break
time.sleep(1) time.sleep(1)
else: else: