Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-pylib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-pylib
Commits
67a46029
Commit
67a46029
authored
2 years ago
by
Florian Spreckelsen
Browse files
Options
Downloads
Plain Diff
Merge branch 'f-run-check' into 'dev'
MAINT: fix file system check executable See merge request
!98
parents
6edeea6c
012271be
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!107
ENH: add entity getters and cached functions
,
!98
MAINT: fix file system check executable
Pipeline
#35613
passed
2 years ago
Stage: code_style
Stage: linting
Stage: setup
Stage: test
Stage: deploy
Changes
2
Pipelines
18
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+2
-0
2 additions, 0 deletions
CHANGELOG.md
src/caosdb/utils/checkFileSystemConsistency.py
+4
-5
4 additions, 5 deletions
src/caosdb/utils/checkFileSystemConsistency.py
with
6 additions
and
5 deletions
CHANGELOG.md
+
2
−
0
View file @
67a46029
...
@@ -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 ###
...
...
This diff is collapsed.
Click to expand it.
src/caosdb/utils/checkFileSystemConsistency.py
+
4
−
5
View file @
67a46029
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment