Commit 6012bf62 authored by Alberto Miranda's avatar Alberto Miranda ♨️ Committed by Marc Vef
Browse files

Set default test timeout to 60

parent 35f2f7e6
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -396,7 +396,7 @@ class ShellClient:

        return ' '.join(f'{k}="{v}"' for k,v in self._patched_env.items())

    def script(self, code, intercept_shell=True, timeout=None, timeout_signal=signal.SIGKILL):
    def script(self, code, intercept_shell=True, timeout=60, timeout_signal=signal.SIGKILL):
        """
        Execute a shell script passed as an argument in bash.

@@ -444,7 +444,7 @@ class ShellClient:
            If the process does not finish within the timeout, it will be sent
            the signal defined by `timeout_signal`.

            Default value: None
            Default value: 60

        timeout_signal: `int`
            The signal to be sent to the process if `timeout` is not None.
@@ -479,7 +479,7 @@ class ShellClient:
            _ok_code=list(range(0, 256))
            )

    def run(self, cmd, *args, timeout=None, timeout_signal=signal.SIGKILL):
    def run(self, cmd, *args, timeout=60, timeout_signal=signal.SIGKILL):
        """
        Execute a shell command  with arguments.

@@ -507,7 +507,7 @@ class ShellClient:
            If the process does not finish within the timeout, it will be sent
            the signal defined by `timeout_signal`.

            Default value: None
            Default value: 60

        timeout_signal: `int`
            The signal to be sent to the process if `timeout` is not None.
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ def test_cp(gkfs_daemon, gkfs_shell, file_factory):
    lf01 = file_factory.create(file01, size=4.0, unit='MB')

    logger.info("copying into gkfs")
    cmd = gkfs_shell.cp(lf01.pathname, gkfs_daemon.mountdir, timeout=60)
    cmd = gkfs_shell.cp(lf01.pathname, gkfs_daemon.mountdir)
    assert cmd.exit_code == 0
    assert cmd.stdout.decode() == ''
    assert cmd.stderr.decode() == ''