Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
f1bf8f1d
Commit
f1bf8f1d
authored
Apr 17, 2013
by
Leif Walsh
Committed by
Yoni Fogel
Apr 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better log format
git-svn-id:
file:///svn/toku/tokudb@42117
c7de825b-a66e-492c-adef-691d508d4ae1
parent
a9634557
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
14 deletions
+17
-14
scripts/run.stress-tests.py
scripts/run.stress-tests.py
+17
-14
No files found.
scripts/run.stress-tests.py
View file @
f1bf8f1d
...
...
@@ -102,6 +102,16 @@ class TestRunnerBase(object):
def
__str__
(
self
):
return
'TestRunner<%s, %d, %d>'
%
(
self
.
execf
,
self
.
tsize
,
self
.
csize
)
def
__getitem__
(
self
,
k
):
if
k
==
'time1'
:
return
self
.
timestr
(
0
)
elif
k
==
'time2'
:
return
self
.
timestr
(
1
)
elif
k
==
'time3'
:
return
self
.
timestr
(
2
)
else
:
return
self
.
__dict__
[
k
]
def
run
(
self
):
srctests
=
os
.
path
.
join
(
self
.
tokudb
,
'src'
,
'tests'
)
self
.
rundir
=
mkdtemp
(
dir
=
srctests
)
...
...
@@ -136,7 +146,7 @@ class TestRunnerBase(object):
pass
except
TestFailure
:
savedir
=
self
.
save
()
self
.
print_failure
(
savedir
)
self
.
print_failure
()
warning
(
'Saved environment to %s'
,
savedir
)
else
:
self
.
print_success
()
...
...
@@ -180,17 +190,6 @@ class TestRunnerBase(object):
else
:
return
time
.
ctime
(
timeval
)
def
logstr
(
self
,
passed
):
if
passed
:
result
=
'PASS'
else
:
result
=
'FAIL'
return
(
'"%s",%s,%d,%d,%d,%d,%s,%s,%s,%s'
%
(
self
.
execf
,
self
.
rev
,
self
.
tsize
,
self
.
csize
,
self
.
ptquery
,
self
.
update
,
self
.
timestr
(
0
),
self
.
timestr
(
1
),
self
.
timestr
(
2
),
result
))
def
infostr
(
self
,
passed
):
if
passed
:
result
=
'PASSED'
...
...
@@ -200,14 +199,18 @@ class TestRunnerBase(object):
(
self
.
scheduler
.
passed
,
self
.
scheduler
.
failed
,
self
.
execf
,
self
.
tsize
,
self
.
csize
,
self
.
ptquery
,
self
.
update
))
def
logstr
(
self
,
result
):
fmtstr
=
result
+
'
\
t
%(execf)s
\
t
%(rev)s
\
t
%(tsize)d
\
t
%(csize)d
\
t
%(ptquery)d
\
t
%(update)d
\
t
%(time1)s
\
t
%(time2)s
\
t
%(time3)s'
return
fmtstr
%
self
def
print_success
(
self
):
self
.
scheduler
.
passed
+=
1
self
.
logger
.
info
(
self
.
logstr
(
True
))
self
.
logger
.
info
(
self
.
logstr
(
'PASSED'
))
info
(
self
.
infostr
(
True
))
def
print_failure
(
self
):
self
.
scheduler
.
failed
+=
1
self
.
logger
.
warning
(
self
.
logstr
(
False
))
self
.
logger
.
warning
(
self
.
logstr
(
'FAILED'
))
warning
(
self
.
infostr
(
False
))
def
waitfor
(
self
,
proc
):
...
...
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