forked from idaholab/moose
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-work to support changing prefix/classification in test itself
(refs idaholab#16410)
- Loading branch information
1 parent
b9fd99f
commit f764ab7
Showing
17 changed files
with
191 additions
and
256 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
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/env python3 | ||
#* This file is part of the MOOSE framework | ||
#* https://www.mooseframework.org | ||
#* | ||
#* All rights reserved, see COPYRIGHT for full restrictions | ||
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT | ||
#* | ||
#* Licensed under LGPL 2.1, please see LICENSE for details | ||
#* https://www.gnu.org/licenses/lgpl-2.1.html | ||
|
||
import sys | ||
import os | ||
|
||
# Locate MOOSE directory, the default is the location of MOOSE as determined by this file, the realpath follows symlinks | ||
MOOSE_DIR = os.getenv('MOOSE_DIR', os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..'))) | ||
if not os.path.exists(MOOSE_DIR): | ||
print('Failed to locate MOOSE, specify the MOOSE_DIR environment variable.') | ||
sys.exit(1) | ||
os.environ['MOOSE_DIR'] = MOOSE_DIR | ||
|
||
# Append MOOSE python directory | ||
MOOSE_PYTHON_DIR = os.path.join(MOOSE_DIR, 'python') | ||
if MOOSE_PYTHON_DIR not in sys.path: | ||
sys.path.append(MOOSE_PYTHON_DIR) | ||
|
||
# Always operate from the directory of them moosedocs.py script, this allows the script to be | ||
# run from any location. CIVET runs 'modules/doc/moosedocs.py check' from the root directory. | ||
os.chdir(os.path.abspath(os.path.dirname(__file__))) | ||
|
||
import moosesqa | ||
moosesqa.MOOSESQA_CLASSIFICATION['CUSTOM'] = ('C', "This is a custom classification") | ||
|
||
from MooseDocs import main | ||
if __name__ == '__main__': | ||
sys.exit(main.run()) |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
[Tests] | ||
issues = '#1980' | ||
design = core.md | ||
classification = custom | ||
[r0] | ||
requirement = "Tree One" | ||
[] | ||
|
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
Oops, something went wrong.