Skip to content

Commit

Permalink
Updated unit test script from master
Browse files Browse the repository at this point in the history
  • Loading branch information
mwetter committed Oct 29, 2024
1 parent 2259ea0 commit af4ef80
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions bin/runUnitTests.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,10 @@ def _setEnvironmentVariables(var, value):
os.environ[var] = value


#def _runUnitTests(batch, tool, package, path, n_pro, show_gui, skip_verification, debug, color, rewriteConfigurationFile):
def _runUnitTests(batch, tool, package, path, n_pro, show_gui, skip_verification, debug, color):
def _runUnitTests(batch, tool, package, path, n_pro, show_gui, skip_verification, debug, color, rewriteConfigurationFile):
import buildingspy.development.regressiontest as u

# ut = u.Tester(tool=tool, skip_verification=skip_verification, color=color, rewriteConfigurationFile=rewriteConfigurationFile)
ut = u.Tester(tool=tool, skip_verification=skip_verification, color=color)
ut = u.Tester(tool=tool, skip_verification=skip_verification, color=color, rewriteConfigurationFile=rewriteConfigurationFile)
ut.batchMode(batch)
ut.setLibraryRoot(path)
if package is not None:
Expand Down Expand Up @@ -144,9 +142,9 @@ def _runUnitTests(batch, tool, package, path, n_pro, show_gui, skip_verification
unit_test_group.add_argument('-d', "--debug",
action="store_true",
help="Enable debug output.")
# unit_test_group.add_argument("--rewrite-configuration-file",
# help='If specified, rewrite the configuration file conf.yml (implemented for openmodelica only)',
# action="store_true")
unit_test_group.add_argument("--rewrite-configuration-file",
help='If specified, rewrite the configuration file conf.yml (implemented for openmodelica only)',
action="store_true")

html_group = parser.add_argument_group(
"arguments to check html syntax only")
Expand Down Expand Up @@ -204,6 +202,6 @@ def _runUnitTests(batch, tool, package, path, n_pro, show_gui, skip_verification
show_gui=args.show_gui,
skip_verification=args.skip_verification,
debug=args.debug,
color=True)
# rewriteConfigurationFile=args.rewrite_configuration_file)
color=True,
rewriteConfigurationFile=args.rewrite_configuration_file)
exit(retVal)

0 comments on commit af4ef80

Please sign in to comment.