Skip to content

Commit

Permalink
fix parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Oct 10, 2017
1 parent e36af5d commit a143b37
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 21 deletions.
4 changes: 2 additions & 2 deletions scripts/Tools/list_acme_tests
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ def list_tests(thing_to_list, categories):
else:
expect(False, "Unrecognized thing to list '{}'".format(thing_to_list))

print(("Tested {} for test categories: {}".format(thing_to_list, ", ".join(categories))))
print("Tested {} for test categories: {}".format(thing_to_list, ", ".join(categories)))
for item in sorted(things):
print((" ", item))
print(" ", item)

###############################################################################
def _main_func(description):
Expand Down
2 changes: 1 addition & 1 deletion scripts/Tools/simple_compare
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def _main_func(description):
expect(success,
"Diff between files {} and {}:\n{}".format(gold_file, compare_file, comments))

print(("Files {} and {} MATCH".format(gold_file, compare_file)))
print("Files {} and {} MATCH".format(gold_file, compare_file))

###############################################################################

Expand Down
2 changes: 1 addition & 1 deletion scripts/lib/CIME/SystemTests/system_tests_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def compare_env_run(self, expected=None):
logging.warn(" Resetting {} for test".format(key))
f1obj.set_value(key, f2obj.get_value(key, resolved=False))
else:
print(("WARNING: Found difference in test {}: case: {} original value {}".format(key, diffs[key][0], diffs[key][1])))
print("WARNING: Found difference in test {}: case: {} original value {}".format(key, diffs[key][0], diffs[key][1]))
return False
return True

Expand Down
13 changes: 6 additions & 7 deletions scripts/lib/CIME/XML/machines.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,13 @@ def print_values(self):
max_tasks_per_node = machine.find("MAX_TASKS_PER_NODE")
MAX_MPITASKS_PER_NODE = machine.find("MAX_MPITASKS_PER_NODE")

print(( " {} : {} ".format(name , desc.text)))
print(( " os ", os_.text))
print(( " compilers ",compilers.text))
print( " {} : {} ".format(name , desc.text))
print( " os ", os_.text)
print( " compilers ",compilers.text)
if MAX_MPITASKS_PER_NODE is not None:
print(( " pes/node ",MAX_MPITASKS_PER_NODE.text))
print(" pes/node ",MAX_MPITASKS_PER_NODE.text)
if max_tasks_per_node is not None:
print(( " max_tasks/node ",max_tasks_per_node.text))
print(" max_tasks/node ",max_tasks_per_node.text)

def return_all_values(self):
# return a dictionary of machines
Expand All @@ -327,11 +327,10 @@ def return_all_values(self):
if max_tasks_per_node is not None:
max_tasks_pn = max_tasks_per_node.text

mach_dict[name] = { 'description' : desc.text,
mach_dict[name] = { 'description' : desc.text,
'os' : os_.text,
'compilers' : compilers.text,
'pes/node' : ppn,
'max_tasks/node' : max_tasks_pn }

return mach_dict

5 changes: 2 additions & 3 deletions scripts/lib/CIME/XML/test_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,5 @@ def push2testdb(self):
#
# Print any messages from the post command
#
print((f.read()))
print((f.code))

print(f.read())
print(f.code)
2 changes: 1 addition & 1 deletion scripts/lib/CIME/XML/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ def print_values(self, skip_infrastructure_tests=True):
continue
name = one_test.get("NAME")
desc = one_test.find("DESC").text
print(("{}: {}".format(name, desc)))
print("{}: {}".format(name, desc))
6 changes: 3 additions & 3 deletions scripts/lib/CIME/bless_test_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def bless_namelists(test_name, report_only, force, baseline_name, baseline_root)
# re-run create_test.

# Update namelist files
print(("Test '{}' had namelist diff".format(test_name)))
print("Test '{}' had namelist diff".format(test_name))
if (not report_only and
(force or input("Update namelists (y/n)? ").upper() in ["Y", "YES"])):
create_test_gen_args = " -g {} ".format(baseline_name if get_model() == "cesm" else " -g -b {} ".format(baseline_name))
Expand Down Expand Up @@ -97,11 +97,11 @@ def bless_test_results(baseline_name, baseline_root, test_root, compiler, test_i

# Now, do the bless
if not nl_bless and not hist_bless:
print(("Nothing to bless for test:", test_name, " overall status:", overall_result))
print("Nothing to bless for test:", test_name, " overall status:", overall_result)
else:

print("###############################################################################")
print(("Blessing results for test:", test_name, "most recent result:", overall_result))
print("Blessing results for test:", test_name, "most recent result:", overall_result)
print("###############################################################################")
if not force:
time.sleep(2)
Expand Down
4 changes: 2 additions & 2 deletions scripts/lib/CIME/check_lockedfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ def check_lockedfiles(case):
if diffs:
logging.warn("File {} has been modified".format(lfile))
for key in list(diffs.keys()):
print((" found difference in {} : case {} locked {}"
.format(key, repr(diffs[key][0]), repr(diffs[key][1]))))
print(" found difference in {} : case {} locked {}"
.format(key, repr(diffs[key][0]), repr(diffs[key][1])))

if objname == "env_mach_pes":
expect(False, "Invoke case.setup --reset ")
Expand Down
2 changes: 1 addition & 1 deletion scripts/lib/CIME/compare_test_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def compare_test_results(baseline_name, baseline_root, test_root, compiler, test
brief_result += " {}".format(compare_comment)
brief_result += "\n"

print((brief_result,))
print(brief_result)

append_status_cprnc_log(brief_result, logfile_name, test_dir)

Expand Down

0 comments on commit a143b37

Please sign in to comment.