Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
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
Container Registry
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
Zipr Toolchain
Commits
5dc286bc
Commit
5dc286bc
authored
6 years ago
by
Anh Nguyen-Tuong
Browse files
Options
Downloads
Patches
Plain Diff
test_cmds.sh reports success when "fail" config results in test failing
Former-commit-id: 9eae8049ff18e10db709ee87b8dad3ee8f0b912d
parent
cb8ab45f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cicd_tests/verify-fails.sh
+1
-13
1 addition, 13 deletions
cicd_tests/verify-fails.sh
tests/test_cmds.sh
+3
-1
3 additions, 1 deletion
tests/test_cmds.sh
with
4 additions
and
14 deletions
cicd_tests/verify-fails.sh
+
1
−
13
View file @
5dc286bc
...
...
@@ -8,21 +8,9 @@ source set_env_vars
cd
$PEASOUP_HOME
/tests
make clean
# these tests must fail
# verify ls failure
# verify "fail" configuration
./test_cmds.sh
-l
-c
fail
-a
ls
if
[
$?
-eq
0
]
;
then
echo
"Error: expected ls failure"
exit
1
fi
# verify grep failure
./test_cmds.sh
-l
-c
fail
-a
grep
if
[
$?
-eq
0
]
;
then
echo
"Error: expected grep failure"
exit
1
fi
exit
0
This diff is collapsed.
Click to expand it.
tests/test_cmds.sh
+
3
−
1
View file @
5dc286bc
...
...
@@ -218,7 +218,9 @@ do_tests()
done
if
[[
$progs_fail
!=
""
]]
||
[[
$progs_fail_peasoup
!=
""
]]
;
then
had_fails
=
1
if
[[
$config
!=
"fail"
]]
;
then
had_fails
=
1
fi
fi
}
...
...
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