Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
XDG Integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
JennaHuntsman
XDG Integration
Commits
a42b5d68
Commit
a42b5d68
authored
3 years ago
by
Brad Payne (Vir Linden)
Browse files
Options
Downloads
Patches
Plain Diff
SL-15999 - made cwd handling a bit more robust in perfbot_run.py
parent
e5cd9cb9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/perf/perfbot_run.py
+5
-5
5 additions, 5 deletions
scripts/perf/perfbot_run.py
with
5 additions
and
5 deletions
scripts/perf/perfbot_run.py
+
5
−
5
View file @
a42b5d68
...
...
@@ -75,12 +75,12 @@ def gen_niv_script(args):
# you can also specify it explicitly with the --cwd parameter
# (required for dev builds)
args
.
viewer
=
os
.
path
.
abspath
(
args
.
viewer
)
working_dir
=
args
.
cwd
if
len
(
args
.
cwd
)
==
0
:
working_dir
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
args
.
viewer
))
print
(
f
"
Working directory is
{
working_dir
}
{
args
.
cwd
=
}
"
)
environ
=
os
.
environ
environ
[
"
cwd
"
]
=
working_dir
else
:
working_dir
=
os
.
path
.
abspath
(
args
.
cwd
)
print
(
f
"
Working directory is
{
working_dir
}
, cwd
{
args
.
cwd
}
"
)
os
.
chdir
(
working_dir
)
if
args
.
dryrun
:
print
(
"
Running in dry-run mode - no Viewers will be started
"
)
...
...
@@ -138,7 +138,7 @@ def gen_niv_script(args):
# usefully, display the script lines) but do not start the Viewer
if
args
.
dryrun
==
False
:
print
(
"
opening viewer session with
"
,
script_cmd
)
viewer_session
=
subprocess
.
Popen
(
script_cmd
,
env
=
environ
)
viewer_session
=
subprocess
.
Popen
(
script_cmd
)
# Sleeping a bit between launches seems to help avoid a CPU
# surge when N Viewers are started simulatanously. The default
...
...
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