syncloud-lib 334__tar.gz → 336__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {syncloud_lib-334/syncloud_lib.egg-info → syncloud_lib-336}/PKG-INFO +1 -1
- {syncloud_lib-334 → syncloud_lib-336/syncloud_lib.egg-info}/PKG-INFO +1 -1
- {syncloud_lib-334 → syncloud_lib-336}/syncloudlib/integration/conftest.py +1 -1
- {syncloud_lib-334 → syncloud_lib-336}/syncloudlib/integration/ssh.py +9 -6
- syncloud_lib-336/version +1 -0
- syncloud_lib-334/version +0 -1
- {syncloud_lib-334 → syncloud_lib-336}/LICENSE +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/MANIFEST.in +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/setup.cfg +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/setup.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/syncloud_lib.egg-info/SOURCES.txt +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/syncloud_lib.egg-info/dependency_links.txt +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/syncloud_lib.egg-info/requires.txt +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/syncloud_lib.egg-info/top_level.txt +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/syncloudlib/__init__.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/syncloudlib/application/__init__.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/syncloudlib/application/config.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/syncloudlib/application/connection.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/syncloudlib/application/paths.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/syncloudlib/application/ports.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/syncloudlib/application/service.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/syncloudlib/application/storage.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/syncloudlib/application/urls.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/syncloudlib/application/users.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/syncloudlib/error.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/syncloudlib/fs.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/syncloudlib/http.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/syncloudlib/integration/__init__.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/syncloudlib/integration/device.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/syncloudlib/integration/hosts.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/syncloudlib/integration/installer.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/syncloudlib/integration/loop.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/syncloudlib/integration/screenshots.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/syncloudlib/integration/selenium_wrapper.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/syncloudlib/json/__init__.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/syncloudlib/json/convertible.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/syncloudlib/linux.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/syncloudlib/logger.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/test/application/test_connection.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/test/application/test_paths.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/test/application/test_service.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/test/application/test_storage.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/test/application/test_urls.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/test/integration/test_hosts.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/test/integration/test_installer.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/test/integration/test_loop.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/test/integration/test_ssh.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/test/json/test_convertible.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/test/test_fs.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/test/test_linux.py +0 -0
- {syncloud_lib-334 → syncloud_lib-336}/test/test_logger.py +0 -0
|
@@ -9,7 +9,7 @@ from syncloudlib.integration.selenium_wrapper import SeleniumWrapper
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
def pytest_addoption(parser):
|
|
12
|
-
parser.addoption("--domain", action="store"
|
|
12
|
+
parser.addoption("--domain", action="store")
|
|
13
13
|
parser.addoption("--device-host", action="store")
|
|
14
14
|
parser.addoption("--app-archive-path", action="store")
|
|
15
15
|
parser.addoption("--app", action="store")
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
from subprocess import check_output, STDOUT, CalledProcessError
|
|
2
|
+
import logging
|
|
3
|
+
log = logging.getLogger()
|
|
4
|
+
log.setLevel(logging.DEBUG)
|
|
2
5
|
|
|
3
6
|
import time
|
|
4
7
|
|
|
@@ -14,7 +17,7 @@ def run_scp(command, throw=True, debug=True, password='syncloud', retries=0, sle
|
|
|
14
17
|
retry += 1
|
|
15
18
|
time.sleep(sleep)
|
|
16
19
|
sleep = sleep * 2
|
|
17
|
-
|
|
20
|
+
log.info('retrying {0}'.format(retry))
|
|
18
21
|
|
|
19
22
|
|
|
20
23
|
def run_ssh(host, command, throw=True, debug=True, password='syncloud', retries=0, sleep=1, env_vars='', port=22):
|
|
@@ -29,7 +32,7 @@ def run_ssh(host, command, throw=True, debug=True, password='syncloud', retries=
|
|
|
29
32
|
retry += 1
|
|
30
33
|
time.sleep(sleep)
|
|
31
34
|
sleep = sleep * 2
|
|
32
|
-
|
|
35
|
+
log.info('retrying {0}'.format(retry))
|
|
33
36
|
|
|
34
37
|
|
|
35
38
|
def ssh_command(password, command):
|
|
@@ -38,14 +41,14 @@ def ssh_command(password, command):
|
|
|
38
41
|
|
|
39
42
|
def _run_command(command, throw, debug, password):
|
|
40
43
|
try:
|
|
41
|
-
|
|
44
|
+
log.info('ssh command: {0}'.format(command))
|
|
42
45
|
output = str(check_output(ssh_command(password, command), shell=True, stderr=STDOUT, encoding='UTF-8')).strip()
|
|
43
46
|
if debug:
|
|
44
|
-
|
|
45
|
-
|
|
47
|
+
log.info("ssh output: " + output)
|
|
48
|
+
log.info('')
|
|
46
49
|
return output
|
|
47
50
|
except CalledProcessError as e:
|
|
48
|
-
|
|
51
|
+
log.info("ssh error: " + str(e.output))
|
|
49
52
|
if throw:
|
|
50
53
|
raise
|
|
51
54
|
return str(e.output)
|
syncloud_lib-336/version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
336
|
syncloud_lib-334/version
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
334
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|