Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
padmwsverify
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
stw
wt
padmwsverify
Commits
b584e777
Commit
b584e777
authored
Mar 17, 2017
by
Tomas Pettersson
🏸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added clean
parent
78f7ff1a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
run.py
run.py
+1
-0
runner/model.py
runner/model.py
+6
-2
runner/model.pyc
runner/model.pyc
+0
-0
No files found.
run.py
View file @
b584e777
...
...
@@ -11,6 +11,7 @@ def main():
v
=
Models
()()
r
=
random
.
choice
(
v
)
r
();
r
.
clean
();
sys
.
exit
(
0
)
except
Exception
as
error
:
print
error
...
...
runner/model.py
View file @
b584e777
...
...
@@ -20,7 +20,10 @@ class Runner(object):
def
onError
(
error
,
errarea
):
raise
ValueError
(
error
,
errarea
)
def
clean
(
self
):
requests
.
get
(
'/'
.
join
([
self
.
url
,
"status"
,
"clean"
]),
data
=
None
,
json
=
None
,
auth
=
HTTPBasicAuth
(
self
.
usr
,
self
.
pwd
))
def
__call__
(
self
,
jdata
,
name
,
timeperiod
,
output
,
timeout
):
# create
rCreate
=
requests
.
post
(
'/'
.
join
([
self
.
url
,
"workarea"
,
"v2"
]),
data
=
None
,
json
=
None
,
auth
=
HTTPBasicAuth
(
self
.
usr
,
self
.
pwd
))
...
...
@@ -84,7 +87,8 @@ class Model(Runner):
self
.
jdata
=
json
.
load
(
file
)
def
__call__
(
self
,
timeperiod
=
None
,
output
=
'run'
,
timeout
=
30
):
super
(
Model
,
self
).
__call__
(
self
.
jdata
,
self
.
name
,
timeperiod
,
output
,
timeout
)
def
clean
(
self
):
super
(
Model
,
self
).
clean
();
class
Models
(
object
):
...
...
runner/model.pyc
View file @
b584e777
No preview for this file type
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