Skip to content
Snippets Groups Projects
Commit 67a46029 authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

Merge branch 'f-run-check' into 'dev'

MAINT: fix file system check executable

See merge request !98
parents 6edeea6c 012271be
Branches
Tags
2 merge requests!107ENH: add entity getters and cached functions,!98MAINT: fix file system check executable
Pipeline #35613 passed
...@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## ## [Unreleased] ##
### Added ### ### Added ###
- Added location argument to `src/caosdb/utils/checkFileSystemConsistency.py`
### Changed ### ### Changed ###
...@@ -16,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -16,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Removed ### ### Removed ###
### Fixed ### ### Fixed ###
- Fixed `src/caosdb/utils/checkFileSystemConsistency.py`
### Security ### ### Security ###
......
...@@ -82,17 +82,15 @@ def main(argv=None): ...@@ -82,17 +82,15 @@ def main(argv=None):
program_build_date = str(__updated__) program_build_date = str(__updated__)
program_version_message = '%%(prog)s %s (%s)' % ( program_version_message = '%%(prog)s %s (%s)' % (
program_version, program_build_date) program_version, program_build_date)
program_shortdesc = __import__('__main__').__doc__.split("\n")[1] program_license = '''
program_license = '''%s
Created by timm fitschen on %s.
Copyright 2016 BMPG. All rights reserved. Copyright 2016 BMPG. All rights reserved.
Distributed on an "AS IS" basis without warranties Distributed on an "AS IS" basis without warranties
or conditions of any kind, either express or implied. or conditions of any kind, either express or implied.
USAGE USAGE
''' % (program_shortdesc, str(__date__)) '''
# Setup argument parser # Setup argument parser
parser = ArgumentParser(description=program_license, parser = ArgumentParser(description=program_license,
...@@ -113,6 +111,7 @@ USAGE ...@@ -113,6 +111,7 @@ USAGE
help="timeout in seconds for the database requests. [default: %(default)s]", help="timeout in seconds for the database requests. [default: %(default)s]",
metavar="TIMEOUT", metavar="TIMEOUT",
default="200") default="200")
parser.add_argument('location')
# Process arguments # Process arguments
args = parser.parse_args() args = parser.parse_args()
...@@ -121,7 +120,7 @@ USAGE ...@@ -121,7 +120,7 @@ USAGE
VERBOSITY = args.verbose VERBOSITY = args.verbose
TIMEOUT = args.timeout TIMEOUT = args.timeout
runCheck(TIMEOUT) print(runCheck(TIMEOUT, args.location).messages)
return 0 return 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment