Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
c019068f
Commit
c019068f
authored
Feb 09, 2002
by
Martin Pool
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add $preserve_scratch and $always_log so if you want to see details
about successful tests, you can.
parent
715d1f45
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
runtests.sh
runtests.sh
+11
-7
No files found.
runtests.sh
View file @
c019068f
...
...
@@ -176,8 +176,8 @@ prep_scratch() {
return
0
}
discard_scratch
()
{
[
-d
"
$scratchdir
"
]
&&
rm
-rf
"
$scratchdir
"
maybe_
discard_scratch
()
{
[
x
"
$preserve_scratch
"
!=
xyes
]
&&
[
-d
"
$scratchdir
"
]
&&
rm
-rf
"
$scratchdir
"
return
0
}
...
...
@@ -198,16 +198,23 @@ do
result
=
$?
set
-e
if
[
"x
$always_log
"
=
xyes
-o
\(
$result
!=
0
-a
$result
!=
77
-a
$result
!=
78
\)
]
then
echo
"-----
$testbase
log follows"
cat
"
$scratchdir
/test.log"
echo
"-----
$testbase
log ends"
fi
case
$result
in
0
)
echo
"PASS
$testbase
"
passed
=
`
expr
$passed
+ 1
`
discard_scratch
maybe_
discard_scratch
;;
77
)
echo
"SKIP
$testbase
"
skipped
=
`
expr
$skipped
+ 1
`
discard_scratch
maybe_
discard_scratch
;;
78
)
# It failed, but we expected that. don't dump out error logs,
...
...
@@ -218,9 +225,6 @@ do
;;
*
)
echo
"FAIL
$testbase
"
echo
"-----
$testbase
failed: log follows"
cat
"
$scratchdir
/test.log"
echo
"-----
$testbase
log ends"
failed
=
`
expr
$failed
+ 1
`
if
[
"x
$nopersist
"
=
"xyes"
]
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment