Skip to content

Commit 0614a26

Browse files
committed
tests UPDATE check for expect
1 parent adb312f commit 0614a26

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/yanglint/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ endfunction(add_yanglint_test)
2323
if(ENABLE_TESTS)
2424
# tests of interactive mode using tclsh
2525
find_program(PATH_TCLSH NAMES tclsh)
26+
find_program(PATH_EXPECT NAMES expect)
2627
if(NOT PATH_TCLSH)
27-
message(WARNING "'tclsh' not found! The yanglint(1) interactive tests will not be available.")
28+
message(WARNING "tclsh not found, yanglint(1) interactive tests will not be available.")
29+
elseif(NOT PATH_EXPECT)
30+
message(WARNING "expect not found, yanglint(1) interactive tests will not be available.")
2831
else()
2932
if(YANGLINT_INTERACTIVE)
3033
add_yanglint_test(NAME interactive VIA tclsh SCRIPT interactive/all.tcl)

0 commit comments

Comments
 (0)