Skip to content

Commit

Permalink
autopep
Browse files Browse the repository at this point in the history
  • Loading branch information
urso committed Feb 5, 2019
1 parent e9231d7 commit df83628
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions filebeat/tests/system/filebeat.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import stat
import sys

sys.path.append(os.path.join(os.path.dirname(__file__), '../../../libbeat/tests/system'))
curdir = os.path.dirname(__file__)
sys.path.append(os.path.join(curdir, '../../../libbeat/tests/system'))

from beat.beat import TestCase

Expand All @@ -17,7 +18,7 @@ def setUpClass(self):
if not hasattr(self, "beat_name"):
self.beat_name = "filebeat"
if not hasattr(self, "beat_path"):
self.beat_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../"))
self.beat_path = os.path.abspath(os.path.join(curdir, "../../"))

super(BaseTest, self).setUpClass()

Expand Down
8 changes: 4 additions & 4 deletions filebeat/tests/system/test_registrar.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,8 @@ def test_restart_continue(self):
# Store first registry file
registry_file = "registry/filebeat/data.json"
shutil.copyfile(
self.working_dir + "/" + registry_file,
self.working_dir + "/registry.first",
self.working_dir + "/" + registry_file,
self.working_dir + "/registry.first",
)

# Append file
Expand Down Expand Up @@ -579,8 +579,8 @@ def test_rotating_file_with_restart(self):
# Store first registry file
registry_file = "registry/filebeat/data.json"
shutil.copyfile(
self.working_dir + "/" + registry_file,
self.working_dir + "/registry.first",
self.working_dir + "/" + registry_file,
self.working_dir + "/registry.first",
)

# Rotate log file, create a new empty one and remove it afterwards
Expand Down

0 comments on commit df83628

Please sign in to comment.