-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1940 from ibpsa/issue1939_openModelica_1_24_0
Updated OMC to 1.24.0
- Loading branch information
Showing
4 changed files
with
12 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,9 +24,6 @@ | |
# If no errors occurred during the unit tests, then | ||
# this script returns 0. Otherwise, it returns a | ||
# non-zero exit value. | ||
# | ||
# [email protected] 2011-02-23 | ||
# [email protected] 2017-04-11 | ||
####################################################### | ||
from __future__ import absolute_import | ||
from __future__ import division | ||
|
@@ -74,10 +71,10 @@ def _setEnvironmentVariables(var, value): | |
os.environ[var] = value | ||
|
||
|
||
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) | ||
ut = u.Tester(tool=tool, skip_verification=skip_verification, color=color, rewriteConfigurationFile=rewriteConfigurationFile) | ||
ut.batchMode(batch) | ||
ut.setLibraryRoot(path) | ||
if package is not None: | ||
|
@@ -146,7 +143,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") | ||
|
||
html_group = parser.add_argument_group( | ||
"arguments to check html syntax only") | ||
|
@@ -204,6 +203,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 | ||
) | ||
color=True, | ||
rewriteConfigurationFile=args.rewrite_configuration_file) | ||
exit(retVal) |