18790: Don't check stderr.txt for container state hints.
authorTom Clegg <tom@curii.com>
Wed, 5 Apr 2023 23:58:30 +0000 (19:58 -0400)
committerTom Clegg <tom@curii.com>
Wed, 5 Apr 2023 23:58:30 +0000 (19:58 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

cmd/arvados-client/container_gateway.go

index 806bcd277adcd1c8764b71f9672c57f077bc0734..36c376e5c097371cd3a1a0cc07ecc770209047e4 100644 (file)
@@ -280,10 +280,12 @@ func (lc *logsCommand) display(out, stderr io.Writer, watching []string, receive
                        if err != nil {
                                fmt.Fprintln(stderr, err)
                        }
-                       checkState = checkState ||
-                               bytes.HasSuffix(line, []byte("Complete")) ||
-                               bytes.HasSuffix(line, []byte("Cancelled")) ||
-                               bytes.HasSuffix(line, []byte("Queued"))
+                       if fnm == "crunch-run.txt" {
+                               checkState = checkState ||
+                                       bytes.HasSuffix(line, []byte("Complete")) ||
+                                       bytes.HasSuffix(line, []byte("Cancelled")) ||
+                                       bytes.HasSuffix(line, []byte("Queued"))
+                       }
                }
        }
        return checkState