1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
From: nick black <dankamongmen@gmail.com>
Date: Wed, 5 Nov 2025 12:16:10 -0500
Subject: CMake: if TERM is not defined,
don't try to run blockdev-verbose test #161
---
CMakeLists.txt | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 66a1fa3..1efdae6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -173,10 +173,14 @@ add_test(
)
endif()
+if(DEFINED ENV{TERM})
add_test(
NAME blockdev-verbose
COMMAND sh -c "echo 'blockdev -v' | ./growlight-readline -v --notroot"
)
+else()
+ message(WARNING "TERM is not defined, not running blockdev-verbose test")
+endif()
# Pandoc documentation (man pages)
if(USE_PANDOC)
|