[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #30591 [Core Tor/Tor]: Make tor's Travis stem job log controller messages from stem and tor



#30591: Make tor's Travis stem job log controller messages from stem and tor
-------------------------------------------------+-------------------------
 Reporter:  teor                                 |          Owner:  teor
     Type:  defect                               |         Status:
                                                 |  needs_revision
 Priority:  Medium                               |      Milestone:  Tor:
                                                 |  0.4.1.x-final
Component:  Core Tor/Tor                         |        Version:  Tor:
                                                 |  0.3.5.1-alpha
 Severity:  Normal                               |     Resolution:
 Keywords:  tor-ci-fail-sometimes, stem,         |  Actual Points:  0.8
  041-should                                     |
Parent ID:  #29437                               |         Points:  0.1
 Reviewer:  catalyst                             |        Sponsor:
                                                 |  Sponsor31-can
-------------------------------------------------+-------------------------

Comment (by catalyst):

 Replying to [comment:28 teor]:
 > I tried a fix, but the grep hid the exit status.
 > And I tried pipefail, but that didn't work.

 If `/bin/sh` is `dash`, it might not have `set -o pipefail`, which seems
 to be a `bash` extension.

 > I don't know what else to try, do you have any ideas, catalyst?

 I think there's some useful incantation that threads `echo $?` around
 through a bunch of file descriptors through several layers of subshells,
 though.

 e.g.,

 {{{
 $ ( ( ( (echo foo; echo bar; echo baz; false); echo $? >&6 ) | grep -v bar
 >&7 ) 6>&1 | exit `cat` ) 7>&1 || echo fail
 foo
 baz
 fail
 }}}

 but I'm trying to figure out if there's a simpler way to accomplish that
 file descriptor plumbing.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/30591#comment:29>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs