airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject git commit: fixing the command comparision in standarderror and make the job submission fail
Date Fri, 03 Oct 2014 14:17:38 GMT
Repository: airavata
Updated Branches:
  refs/heads/master 667343064 -> 10139baa6


fixing the command comparision in standarderror and make the job submission fail


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/10139baa
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/10139baa
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/10139baa

Branch: refs/heads/master
Commit: 10139baa62ff52d6fcbb6aac131e4707f51458d6
Parents: 6673430
Author: lahiru <lahiru@apache.org>
Authored: Fri Oct 3 10:17:28 2014 -0400
Committer: lahiru <lahiru@apache.org>
Committed: Fri Oct 3 10:17:28 2014 -0400

----------------------------------------------------------------------
 .../org/apache/airavata/gsi/ssh/impl/GSISSHAbstractCluster.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/10139baa/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/impl/GSISSHAbstractCluster.java
----------------------------------------------------------------------
diff --git a/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/impl/GSISSHAbstractCluster.java
b/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/impl/GSISSHAbstractCluster.java
index 0ccfd13..b5e0802 100644
--- a/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/impl/GSISSHAbstractCluster.java
+++ b/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/impl/GSISSHAbstractCluster.java
@@ -588,6 +588,8 @@ public class GSISSHAbstractCluster implements Cluster {
         String stdErrorString = jobIDReaderCommandOutput.getStdErrorString();
         log.info("StandardOutput Returned:" + stdOutputString);
         log.info("StandardError  Returned:" +stdErrorString);
+        String[] list = command.split(File.separator);
+        command = list[list.length - 1];
         // We are checking for stderr containing the command issued. Thus ignores the verbose
logs in stderr.
         if (stdErrorString != null && stdErrorString.contains(command) &&
!stdErrorString.contains("Warning")) {
             log.error("Standard Error output : " + stdErrorString);


Mime
View raw message