From 07ec2ebfb864259ede01a97071f53d1a28a27c27 Mon Sep 17 00:00:00 2001 From: Alina Quereilhac Date: Wed, 19 Jun 2013 08:41:40 -0700 Subject: [PATCH] stdout was taking always the default value in LinuxNode check_errors --- src/nepi/resources/linux/node.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/nepi/resources/linux/node.py b/src/nepi/resources/linux/node.py index 0d64557f..edacb0b7 100644 --- a/src/nepi/resources/linux/node.py +++ b/src/nepi/resources/linux/node.py @@ -385,7 +385,10 @@ class LinuxNode(ResourceManager): # wait until command finishes to execute self.wait_run(pid, ppid) - (out, err), proc = self.check_errors(home, ecodefile, stderr) + (out, err), proc = self.check_errors(home, + ecodefile = ecodefile, + stdout = stdout, + stderr= stderr) # Out is what was written in the stderr file if err: @@ -454,8 +457,8 @@ class LinuxNode(ResourceManager): def check_errors(self, home, ecodefile = "exitcode", - stderr = "stderr", - stdout = "stdout"): + stdout = "stdout", + stderr = "stderr"): """ Checks whether errors occurred while running a command. It first checks the exit code for the command, and only if the -- 2.43.0