From 1b67b1742603f578ce65913c665814f12645f8f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophane=20Hufschmitt?= Date: Wed, 18 Sep 2019 09:47:43 +0200 Subject: [PATCH] Fix the library-linkstatic-flag test Was failing inside a pure nix-shell because of the `file` executable missing --- shell.nix | 1 + tests/library-linkstatic-flag/BUILD.bazel | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/shell.nix b/shell.nix index 54d91ba69..79c03d999 100644 --- a/shell.nix +++ b/shell.nix @@ -27,6 +27,7 @@ mkShell { binutils # check the start script for problems shellcheck + file ] ++ lib.optionals docTools [graphviz python36Packages.sphinx zip unzip]; shellHook = '' diff --git a/tests/library-linkstatic-flag/BUILD.bazel b/tests/library-linkstatic-flag/BUILD.bazel index 82ba8b4f2..99d95d90c 100644 --- a/tests/library-linkstatic-flag/BUILD.bazel +++ b/tests/library-linkstatic-flag/BUILD.bazel @@ -100,7 +100,7 @@ is_dynamic () { file --dereference -- "$1" | grep -q "dynamically linked" res=$? else - echo 'file found in environment, please install either' >&2 + echo 'file not found in environment, please install it' >&2 exit 127 fi return $res