Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pym/bob/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import os.path
import shutil
import signal
import socket
import struct
import subprocess
import tarfile
Expand Down Expand Up @@ -450,6 +451,8 @@
return (False, self._namedErrorString(e.reason), WARNING)
except ConnectionRefusedError:
return (False, self._namedErrorString("connection failed"), WARNING)
except (socket.herror, socket.gaierror) as e:
return (False, self._namedErrorString(str(e)), WARNING)

Check warning on line 455 in pym/bob/archive.py

View check run for this annotation

Codecov / codecov/patch

pym/bob/archive.py#L455

Added line #L455 was not covered by tests
except BuildError as e:
raise
except OSError as e:
Expand Down
8 changes: 4 additions & 4 deletions pym/bob/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,10 +725,10 @@ async def _runShell(self, step, scriptName, logger, workspaceCreated, cleanWorks
self.__linkDependencies(step)

# write spec
specFile = os.path.join(workspacePath, "..", "step.spec")
envFile = os.path.join(workspacePath, "..", "env")
logFile = os.path.join(workspacePath, "..", "log.txt")
scriptHint = os.path.join(workspacePath, "..", "script")
specFile = os.path.normpath(os.path.join(workspacePath, "..", "step.spec"))
envFile = os.path.normpath(os.path.join(workspacePath, "..", "env"))
logFile = os.path.normpath(os.path.join(workspacePath, "..", "log.txt"))
scriptHint = os.path.normpath(os.path.join(workspacePath, "..", "script"))
spec = StepSpec.fromStep(step, envFile, self.__envWhiteList, logFile,
scriptHint=scriptHint, isJenkins=step.JENKINS,
slimSandbox=self.__slimSandbox)
Expand Down