Skip to content

Commit

Permalink
Fixed check for existance
Browse files Browse the repository at this point in the history
[run-notebook-tests]
  • Loading branch information
ckunki committed Mar 8, 2024
1 parent 85a5156 commit 79d6f6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def group_id(self) -> int:
return self.stat.st_gid

def is_group_accessible(self) -> bool:
if not os.path.isfile(self.path):
if not os.path.exists(self.path):
_logger.debug(f"No file {self.path}")
return False
permissions = stat.filemode(self.stat.st_mode)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def notebook_test_container_with_log(notebook_test_container):
print(socket)
print(socket.stat())
print()
print("Container Logs:")
print(notebook_test_container.logs().decode("utf-8"), flush=True)
logs = notebook_test_container.logs().decode("utf-8").strip()
print("Container Logs: {logs or '(empty)'}", flush=True)
yield notebook_test_container


Expand Down

0 comments on commit 79d6f6b

Please sign in to comment.