]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (lsfd) check the exit status of the first command in the pipeline
authorMasatake YAMATO <yamato@redhat.com>
Sat, 15 Apr 2023 11:49:58 +0000 (20:49 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Sun, 16 Apr 2023 12:08:45 +0000 (21:08 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
tests/ts/lsfd/column-name

index 41015009df9209e54bdd47ca2ba841a1f1429464..7dff8f7b23e0a86bcc8d97735789b956c905a740 100755 (executable)
@@ -49,7 +49,7 @@ for C in ro-regular-file pidfd socketpair; do
                # with "INODENUM".
                sed -e 's/\[[0-9]\+\]/[INODENUM]/g'
            }
-           echo "$C"':ASSOC,KNAME,NAME': $?
+           echo "$C"':ASSOC,KNAME,NAME': ${PIPESTATUS[0]}
 
            kill -CONT "${PID}"
        fi