From ba1cfcc8750e069ab64dda87758f16e6b95fcfa4 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Fri, 21 Oct 2022 12:11:18 +0200 Subject: [PATCH] ttcn3: colorize compiler output Attach a tty to the docker container while building the testsuite, as this is what "should_colorize()" checks for. Related: https://gitlab.eclipse.org/eclipse/titan/titan.core/-/commit/b3dca57db9bbc0a99e06f97e96cff296886c8219 Change-Id: I6d3c9e1e82b1cf4384b4abd3f1eed072d8fe6fde --- ttcn3/ttcn3.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ttcn3/ttcn3.sh b/ttcn3/ttcn3.sh index 42bc095..3c468d4 100755 --- a/ttcn3/ttcn3.sh +++ b/ttcn3/ttcn3.sh @@ -247,8 +247,10 @@ build_testsuite() { # since we will run it inside docker later too. local hacks="${DIR_OSMODEV}/src/osmo-ttcn3-hacks" + # -t: add a tty, so we get color output from the compiler docker run \ --rm \ + -t \ -v "$hacks:/osmo-ttcn3-hacks" \ "$(get_testsuite_image)" \ sh -exc "