Uploaded image for project: 'Pegasus'
  1. Pegasus
  2. PM-365

seqexec does not report error correctly

XMLWordPrintable

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major Major
    • master, 3.0.3, 3.1
    • Affects Version/s: master, 3.0.2, 3.1
    • Component/s: None
    • None
    • Environment:
      Am running seqexec without kickstart

      Is this behavior correct?

      seqexec input file is

      corbusier:~ vahi$ more /tmp/seq.in
      /usr/bin/false
      /bin/date
      /bin/date1
      /bin/date

      corbusier:~ vahi$ /bin/date1
      -bash: /bin/date1: No such file or directory
      corbusier:~ vahi$ /bin/false
      -bash: /bin/false: No such file or directory
      corbusier:~ vahi$ echo $?
      127

      When i run through kickstart, why does struct say failed = 0?

      corbusier:~ vahi$ cat /tmp/seq.in | seqexec -f -R /tmp/tr.prg
      seqexec: 1 task remaining
      Fri Apr 15 11:48:40 PDT 2011
      [struct stat="OK", lines=2, count=2, failed=0, duration=0.005, start="2011-04-15T11:48:40-07:00"]
      corbusier:~ vahi$

      Also the first job fail option did not work looks like?
      corbusier:~ vahi$ more /tmp/tr.prg
      2011-04-15T11:55:20-07:00 corbusier:61114 0 0/0 START seqexec -f -R /tmp/tr.prg ### sysname=Darwin machine=i386 release=10.7.0
      2011-04-15T11:55:20-07:00 corbusier:61114 1 1/0 0.002 /usr/bin/false ### utime=0.000 stime=0.002 minflt=0 majflt=0 maxrss=0 idrss=0 inblock=0 oublock=1 nswap=0 nsignals=0 nvcws=0 nivcsw=0
      2011-04-15T11:55:20-07:00 corbusier:61114 2 0/0 0.002 /bin/date ### utime=0.000 stime=0.001 minflt=0 majflt=0 maxrss=0 idrss=0 inblock=0 oublock=0 nswap=0 nsignals=0 nvcws=0 nivcsw=0

      The prg file does have the right exitcode though.

            Assignee:
            vahi Karan Vahi
            Reporter:
            vahi Karan Vahi
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 30 minutes
                1h 30m