Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
test-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
hive
test-tools
Commits
6a5a5ea3
Commit
6a5a5ea3
authored
1 month ago
by
Krzysztof Mochocki
Browse files
Options
Downloads
Patches
Plain Diff
Filter CI variabbles from logged environs
parent
044d6cd2
No related branches found
No related tags found
2 merge requests
!248
Bump helpy
,
!247
Filter out CI variabbles from logged environs
Pipeline
#115465
passed
1 month ago
Stage: static_code_analysis
Stage: tests
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
package/test_tools/__private/utilities/fake_time.py
+4
-1
4 additions, 1 deletion
package/test_tools/__private/utilities/fake_time.py
with
4 additions
and
1 deletion
package/test_tools/__private/utilities/fake_time.py
+
4
−
1
View file @
6a5a5ea3
...
@@ -17,7 +17,10 @@ def configure_fake_time(logger: Logger, env: dict[str, str], time_control: str)
...
@@ -17,7 +17,10 @@ def configure_fake_time(logger: Logger, env: dict[str, str], time_control: str)
env
[
"
FAKETIME_DONT_FAKE_MONOTONIC
"
]
=
"
1
"
env
[
"
FAKETIME_DONT_FAKE_MONOTONIC
"
]
=
"
1
"
env
[
"
TZ
"
]
=
"
UTC
"
env
[
"
TZ
"
]
=
"
UTC
"
logger
.
debug
(
f
"
Following environments are set after fake time configuration:
\n
{
dict
(
env
)
}
"
)
logger
.
debug
(
"
Following environments are set after fake time configuration:
\n
"
+
str
(
dict
(
filter
(
lambda
kv
:
kv
[
0
].
startswith
(
"
CI_
"
),
env
.
items
())))
)
def
get_fake_time_path
(
logger
:
Logger
)
->
Path
:
def
get_fake_time_path
(
logger
:
Logger
)
->
Path
:
...
...
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