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
Hide 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):
...
@@ -102,6 +102,16 @@ class TestRunnerBase(object):
def
__str__
(
self
):
def
__str__
(
self
):
return
'TestRunner<%s, %d, %d>'
%
(
self
.
execf
,
self
.
tsize
,
self
.
csize
)
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
):
def
run
(
self
):
srctests
=
os
.
path
.
join
(
self
.
tokudb
,
'src'
,
'tests'
)
srctests
=
os
.
path
.
join
(
self
.
tokudb
,
'src'
,
'tests'
)
self
.
rundir
=
mkdtemp
(
dir
=
srctests
)
self
.
rundir
=
mkdtemp
(
dir
=
srctests
)
...
@@ -136,7 +146,7 @@ class TestRunnerBase(object):
...
@@ -136,7 +146,7 @@ class TestRunnerBase(object):
pass
pass
except
TestFailure
:
except
TestFailure
:
savedir
=
self
.
save
()
savedir
=
self
.
save
()
self
.
print_failure
(
savedir
)
self
.
print_failure
()
warning
(
'Saved environment to %s'
,
savedir
)
warning
(
'Saved environment to %s'
,
savedir
)
else
:
else
:
self
.
print_success
()
self
.
print_success
()
...
@@ -180,17 +190,6 @@ class TestRunnerBase(object):
...
@@ -180,17 +190,6 @@ class TestRunnerBase(object):
else
:
else
:
return
time
.
ctime
(
timeval
)
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
):
def
infostr
(
self
,
passed
):
if
passed
:
if
passed
:
result
=
'PASSED'
result
=
'PASSED'
...
@@ -200,14 +199,18 @@ class TestRunnerBase(object):
...
@@ -200,14 +199,18 @@ class TestRunnerBase(object):
(
self
.
scheduler
.
passed
,
self
.
scheduler
.
failed
,
(
self
.
scheduler
.
passed
,
self
.
scheduler
.
failed
,
self
.
execf
,
self
.
tsize
,
self
.
csize
,
self
.
ptquery
,
self
.
update
))
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
):
def
print_success
(
self
):
self
.
scheduler
.
passed
+=
1
self
.
scheduler
.
passed
+=
1
self
.
logger
.
info
(
self
.
logstr
(
True
))
self
.
logger
.
info
(
self
.
logstr
(
'PASSED'
))
info
(
self
.
infostr
(
True
))
info
(
self
.
infostr
(
True
))
def
print_failure
(
self
):
def
print_failure
(
self
):
self
.
scheduler
.
failed
+=
1
self
.
scheduler
.
failed
+=
1
self
.
logger
.
warning
(
self
.
logstr
(
False
))
self
.
logger
.
warning
(
self
.
logstr
(
'FAILED'
))
warning
(
self
.
infostr
(
False
))
warning
(
self
.
infostr
(
False
))
def
waitfor
(
self
,
proc
):
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