Skip to content

Commit

Permalink
Cleanup and fomatting fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Alvin Baptiste <[email protected]>
  • Loading branch information
abaptiste committed Nov 4, 2020
1 parent 1788e20 commit 5129766
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 64 deletions.
2 changes: 1 addition & 1 deletion salvo/salvo.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

site.addsitedir("src")

from lib.message_helper import load_control_doc
from lib.job_control_loader import load_control_doc
from lib.run_benchmark import Benchmark

LOGFORMAT = "%(asctime)s: %(process)d [ %(levelname)-5s] [%(module)-5s] %(message)s"
Expand Down
2 changes: 1 addition & 1 deletion salvo/src/lib/docker_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# Ref: https://docker-py.readthedocs.io/en/stable/index.html
import docker
from lib.docker_volume import DockerVolume
from lib.docker_volume import DockerVolume

from google.protobuf.json_format import (Error, MessageToJson)

Expand Down
6 changes: 3 additions & 3 deletions salvo/src/lib/test_docker_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def test_pull_image():
"""Test retrieving an image"""

if not os.path.exists("/var/run/docker.sock"):
pytest.skip("Skipping docker test since no socket is available")
pytest.skip("Skipping docker test since no socket is available")

docker_image = DockerImage()
container = docker_image.pull_image("oschaaf/benchmark-dev:latest")
Expand All @@ -28,7 +28,7 @@ def test_run_image():
"""Test executing a command in an image"""

if not os.path.exists("/var/run/docker.sock"):
pytest.skip("Skipping docker test since no socket is available")
pytest.skip("Skipping docker test since no socket is available")

env = ['key1=val1', 'key2=val2']
cmd = ['uname', '-r']
Expand All @@ -48,7 +48,7 @@ def test_list_images():
"""Test listing available images"""

if not os.path.exists("/var/run/docker.sock"):
pytest.skip("Skipping docker test since no socket is available")
pytest.skip("Skipping docker test since no socket is available")

docker_image = DockerImage()
images = docker_image.list_images()
Expand Down
59 changes: 0 additions & 59 deletions salvo/src/lib/test_docker_volume.py

This file was deleted.

0 comments on commit 5129766

Please sign in to comment.