Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
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
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
65116942
Commit
65116942
authored
Aug 07, 2018
by
Pettersson Tomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testing ensemble
parent
daa8f013
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
0 deletions
+44
-0
.gitignore
.gitignore
+1
-0
ve.py
ve.py
+43
-0
No files found.
.gitignore
View file @
65116942
env.cfg
env.json
statistics.txt
run.txt
**/*.pyc
\ No newline at end of file
ve.py
0 → 100644
View file @
65116942
#!/usr/bin/python
# coding: utf-8
import
sys
import
json
from
time
import
sleep
from
runner.model
import
Models
from
os
import
walk
from
traceback
import
print_exc
def
main
(
method
):
try
:
if
method
==
'select'
:
with
open
(
'env.json'
)
as
envjson
:
data
=
json
.
load
(
envjson
)
padmwslist
=
data
[
'padmws'
]
for
padmws
in
padmwslist
:
# update model.py to handle this contructor class Models(object):
# def __init__(self, url, usr, pwd, domains, input = 'run' ):
# self.url = url
# self.usr = usr
# self.pwd = pwd
mlist
=
Models
(
padmws
[
'url'
],
padmws
[
'usr'
],
padmws
[
'pwd'
],
padmws
[
'filter'
][
'domains'
],
'v3'
)()
mlist
[
selected
-
1
](
None
,
300
)
else
:
raise
ValueError
(
'Validation method is not defined. Try using python '
+
'v3'
+
'.py select <number>'
)
sys
.
exit
(
0
)
except
Exception
as
error
:
print_exc
()
sys
.
exit
(
1
)
'''
To run in terminal call with python <name>.py select <number>
'''
if
__name__
==
"__main__"
:
method
=
''
if
(
len
(
sys
.
argv
)
>
1
):
method
=
sys
.
argv
[
1
]
if
(
len
(
sys
.
argv
)
>
2
):
selected
=
int
(
sys
.
argv
[
2
])
main
(
method
)
\ No newline at end of file
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