Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
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
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
nexedi
slapos.toolbox
Commits
b97cb913
Commit
b97cb913
authored
Feb 05, 2019
by
Bryton Lacquement
🚪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up
parent
ae4f2a25
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
16 deletions
+5
-16
slapos/promise/is_process_older_than_dependency_set/__init__.py
.../promise/is_process_older_than_dependency_set/__init__.py
+1
-1
slapos/runner/views.py
slapos/runner/views.py
+2
-4
slapos/test/monitor/testglobalstate.py
slapos/test/monitor/testglobalstate.py
+2
-2
slapos/test/test_runner.py
slapos/test/test_runner.py
+0
-9
No files found.
slapos/promise/is_process_older_than_dependency_set/__init__.py
View file @
b97cb913
...
...
@@ -31,7 +31,7 @@ def moduleIsModifiedSince(top, since, followlinks=False):
if
ext
in
ignored_extension_set
:
continue
if
since
<
os
.
stat
(
os
.
path
.
join
(
root
,
name
)).
st_mtime
:
print
(
"%s was modified since the process started."
%
\
print
(
"%s was modified since the process started."
%
os
.
path
.
join
(
root
,
name
))
print
(
"Process Time %s < Last modidified file %s"
%
(
time
.
ctime
(
since
),
time
.
ctime
(
os
.
stat
(
os
.
path
.
join
(
root
,
name
)).
st_mtime
)))
...
...
slapos/runner/views.py
View file @
b97cb913
...
...
@@ -675,10 +675,8 @@ def fileBrowser():
dir
=
request
.
form
[
'dir'
].
encode
(
'utf-8'
)
newfilename
=
request
.
form
.
get
(
'newfilename'
,
''
).
encode
(
'utf-8'
)
files
=
request
.
form
.
get
(
'files'
,
''
).
encode
(
'utf-8'
)
if
'opt'
not
in
request
.
form
or
not
request
.
form
[
'opt'
]:
opt
=
1
else
:
opt
=
int
(
request
.
form
[
'opt'
])
opt
=
request
.
form
.
get
(
'opt'
)
opt
=
int
(
opt
)
if
opt
else
1
else
:
opt
=
int
(
request
.
args
.
get
(
'opt'
))
...
...
slapos/test/monitor/testglobalstate.py
View file @
b97cb913
...
...
@@ -229,7 +229,7 @@ exit %(code)s
}"""
with
open
(
os
.
path
.
join
(
self
.
private_dir
,
'monitor.global.json'
))
as
r
:
result
=
json
.
load
s
(
r
.
read
()
)
result
=
json
.
load
(
r
)
result
.
pop
(
"date"
)
self
.
assertEqual
(
result
,
json
.
loads
(
expected_result
))
...
...
@@ -247,7 +247,7 @@ exit %(code)s
expected_result_dict
[
"state"
]
=
{
'error'
:
0
,
'success'
:
4
}
instance_result_dict
=
None
with
open
(
os
.
path
.
join
(
self
.
private_dir
,
'monitor.global.json'
))
as
r
:
instance_result_dict
=
json
.
load
s
(
r
.
read
()
)
instance_result_dict
=
json
.
load
(
r
)
result
=
instance_result_dict
.
copy
()
result
.
pop
(
"date"
)
self
.
assertEqual
(
result
,
...
...
slapos/test/test_runner.py
View file @
b97cb913
...
...
@@ -3,7 +3,6 @@ import os
import
string
import
random
import
supervisor
from
six.moves
import
_thread
import
unittest
...
...
@@ -29,14 +28,6 @@ class TestRunnerBackEnd(unittest.TestCase):
if
os
.
path
.
exists
(
garbage_file
):
os
.
remove
(
garbage_file
)
def
_startSupervisord
(
self
):
cwd
=
os
.
getcwd
()
supervisord_config_file
=
os
.
path
.
join
(
cwd
,
'supervisord.conf'
)
open
(
supervisord_config_file
,
'w'
).
write
(
"""
"""
)
supervisord
=
supervisor
.
supervisord
.
Supervisord
(
'-c'
,
supervisord_config_file
)
_thread
.
start_new_thread
()
def
test_UserCanLoginAndUpdateCredentials
(
self
):
"""
* Create a user with createNewUser
...
...
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