Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Poulpe
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
octobus
Poulpe
Commits
26080da9
Commit
26080da9
authored
3 years ago
by
Pierre-Yves David
Browse files
Options
Downloads
Patches
Plain Diff
do not always accept failing command
parent
52997aff
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/run-util
+5
-1
5 additions, 1 deletion
bin/run-util
tests/test-simple-run.t
+3
-0
3 additions, 0 deletions
tests/test-simple-run.t
with
8 additions
and
1 deletion
bin/run-util
+
5
−
1
View file @
26080da9
...
...
@@ -26,5 +26,8 @@
self
.
base_command
=
get_var
(
'
command
'
)
self
.
command
=
None
# XXX having a list of acceptable status would be better (default to [0])
self
.
accept_failure
=
bool
(
get_var
(
'
accept-failure
'
))
self
.
cwd
=
get_var
(
'
cwd
'
)
...
...
@@ -29,6 +32,5 @@
self
.
cwd
=
get_var
(
'
cwd
'
)
def
apply_data_env
(
self
,
data_env_data
):
variables_data
=
self
.
_benchmark_data
[
'
simple-command
'
].
get
(
'
variables
'
)
...
...
@@ -100,6 +102,8 @@
"
--
"
,
cmd
.
command
,
]
if
cmd
.
accept_failure
:
time_cmd
.
insert
(
-
2
,
"
--ignore-failure
"
)
cwd
=
data_env_path
if
cmd
.
cwd
is
not
None
:
...
...
This diff is collapsed.
Click to expand it.
tests/test-simple-run.t
+
3
−
0
View file @
26080da9
...
...
@@ -74,6 +74,7 @@
$
env
-
desc
set
black
-
tiny
-
bad
.
pbd
meta
.
name
black
.
check
.
tiny
$
env
-
desc
set
black
-
tiny
-
bad
.
pbd
meta
.
method
simple
-
command
$
env
-
desc
set
black
-
tiny
-
bad
.
pbd
simple
-
command
.
command
"
black --check {file}
"
$
env
-
desc
set
black
-
tiny
-
bad
.
pbd
simple
-
command
.
accept
-
failure
"
1
"
$
env
-
desc
set
black
-
tiny
-
bad
.
pbd
simple
-
command
.
variables
.
file
DATA
-
VARS:black
.
check
.
tiny
.
bad
$
env
-
desc
set
black
-
tiny
-
bad
.
pbd
simple
-
command
.
cwd
DATA
-
VARS:
.
...
...
@@ -83,6 +84,7 @@
method
=
simple
-
command
name
=
black
.
check
.
tiny
simple
-
command:
accept
-
failure
=
1
command
=
black
--
check
{
file
}
cwd
=
DATA
-
VARS:
.
variables:
...
...
@@ -120,6 +122,7 @@
method
=
simple
-
command
name
=
black
.
check
.
tiny
simple
-
command:
accept
-
failure
=
1
command
=
black
--
check
{
file
}
cwd
=
DATA
-
VARS:
.
variables:
...
...
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