http://git.savannah.gnu.org/cgit/rcs.git/patch/?id=8883c4f5a29be18e9ea09bd27a7b660830de45bb From 8883c4f5a29be18e9ea09bd27a7b660830de45bb Mon Sep 17 00:00:00 2001 From: Thien-Thi Nguyen Date: Fri, 23 Oct 2020 09:23:49 -0400 Subject: [v] Don't test signal handling if stdin not ok. * tests/t632: If stdin is not open and connected to a tty, skip the signal handling portion of the test. --- tests/ChangeLog | 9 +++++++++ tests/t632 | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/tests/ChangeLog b/tests/ChangeLog index c3715c0..0565058 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,12 @@ +2020-10-23 Thien-Thi Nguyen + + [v] Don't test signal handling if stdin not ok. + + + + * t632: If stdin is not open and connected to + a tty, skip the signal handling portion of the test. + 2020-10-20 Thien-Thi Nguyen Release: 5.10.0 diff --git a/tests/t632 b/tests/t632 index df6acc9..677ec8c 100644 --- a/tests/t632 +++ b/tests/t632 @@ -40,6 +40,15 @@ echo | co -l -I $w \ # (This is skipped if GNU coreutils timeout(1) is not available.) ## +# +# The timeout test needs co(1) to block on input. +# If stdin is not open and connected to a tty, skip out. +if test -t 0 ; then + echo STDIN OK +else + exit 0 +fi + # TODO: Don't be lame! Pick one: # (a) Mimic timeout(1) w/ sh commands. # (b) Incorporate heart of timeout(1) into ./btdt and use that. -- cgit v1.2.1 .scm'>
AgeCommit message (Expand)Author
2020-10-01linux-container: Reset jailed root permissions....* gnu/build/linux-container.scm (mount-file-systems): Add 'chmod' call. * tests/containers.scm ("call-with-container, mnt namespace, root permissions"): New test. Jelle Licht
2020-09-10build: linux-container: Fix run-container....This is a follow-up of 5316dfc0f125b658e4a2acf7f00f49501663d943. Some users of run-container may expect that the container is jailed, even if there are no mounts. This is the case for some Guix tests. * gnu/build/linux-container.scm (run-container): Do not jail the container when the requested root is "/". Mathieu Othacehe
2020-09-02linux-container: Do not jail the container unconditionally....We may want to run a container inside the MNT namespace, without jailing the container. If RUN-CONTAINER is passed a null MOUNTS list, do not jail the container. * gnu/build/linux-container.scm (run-container): Do not call MOUNT-FILE-SYSTEMS if MOUNTS list is empty. Mathieu Othacehe
2019-09-12linux-container: "run-container" scripts shows the container's PID....* gnu/build/linux-container.scm (call-with-container): Add #:process-spawned-hook and honor it. * gnu/system/linux-container.scm (container-script)[script]: Define 'explain' and pass it as #:process-spawned-hook'. Ludovic Courtès
2019-07-06linux-container: Mount a new /dev/pts instance in the container....Fixes <https://bugs.gnu.org/36463>. Reported by Steffen Rytter Postas <nc@scalehost.eu>. * gnu/build/linux-container.scm (mount-file-systems): When /dev/ptmx exists on the host, explicitly mount a new instance of devpts and make /dev/ptmx a symlink to /dev/pts/ptmx. Ludovic Courtès
2019-06-23linux-container: Remove dependency on (guix utils)....Fixes a bug whereby derivations importing (gnu build linux-container), such as the 'bitlbee' and 'tor' services, would depend on the user's (guix config) file, which was pulled as a dependency of (guix utils). As a result, those derivations would vary from user to user. * gnu/build/linux-container.scm (call-with-temporary-directory): New procedure. Ludovic Courtès