From 0c7619535112e19232384e15e82ffa6a5af7569d Mon Sep 17 00:00:00 2001 From: Jade Lovelace Date: Fri, 9 Aug 2024 23:24:17 -0700 Subject: build: remove expect as a dependency I was packaging Lix 2.91 for nixpkgs and was annoyed at the expect dependency. Turns out that you can replace unbuffer with a pretty-short Python script. It became less short after I found out that Linux was converting \n to \r\n in the terminal subsystem, which was not very funny, but is at least solved by twiddling termios bits. Change-Id: I8a2700abcbbf6a9902e01b05b40fa9340c0ab90c --- tests/functional/common/vars-and-functions.sh.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/functional/common') diff --git a/tests/functional/common/vars-and-functions.sh.in b/tests/functional/common/vars-and-functions.sh.in index eda15308d..451cf5383 100644 --- a/tests/functional/common/vars-and-functions.sh.in +++ b/tests/functional/common/vars-and-functions.sh.in @@ -234,6 +234,10 @@ enableFeatures() { sed -i 's/experimental-features .*/& '"$features"'/' "$NIX_CONF_DIR"/nix.conf } +runinpty() { + @python@ @runinpty@ "$@" +} + set -x onError() { -- cgit v1.2.3