Skip to content

Commit 051561e

Browse files
lePicimichalvasko
authored andcommitted
yanglint TEST disable-searchdir test removed
For ctest, its execution was prohibited anyway. For "tclsh all.tcl" run, execution threw an error and it was unintuitive to run the tcl script in a way that it would succeed.
1 parent 8d3d805 commit 051561e

File tree

3 files changed

+0
-22
lines changed

3 files changed

+0
-22
lines changed

tests/yanglint/interactive/add.test

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@ test add_basic {} {
88
ly_cmd "list" "I modleafref\r.*I modleaf"
99
}}
1010

11-
test add_disable_searchdir_once {add --disable-searchdir} {
12-
-setup $ly_setup -cleanup $ly_cleanup -constraints {!ctest} -body {
13-
ly_cmd "add $mdir/modimp-cwd.yang"
14-
ly_cmd "clear"
15-
ly_cmd_err "add -D $mdir/modimp-cwd.yang" "not found in local searchdirs"
16-
}}
17-
1811
test add_disable_searchdir_twice {add -D -D} {
1912
-setup $ly_setup -cleanup $ly_cleanup -constraints {!ctest} -body {
2013
ly_cmd "add $mdir/ietf-ip.yang"

tests/yanglint/modules/modimp-cwd.yang

Lines changed: 0 additions & 8 deletions
This file was deleted.

tests/yanglint/non-interactive/disabled_searchdir.test

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@ source [expr {[info exists ::env(TESTS_DIR)] ? "$env(TESTS_DIR)/non-interactive/
22

33
set mdir $env(YANG_MODULES_DIR)
44

5-
# Test should be skipped if called by ctest.
6-
test disable_searchdir_once {Unsuccessfully imports module due to disabled cwd searching} {
7-
-constraints {!ctest} -body {
8-
ly_cmd "$mdir/modimp-cwd.yang"
9-
ly_cmd_err "-D $mdir/modimp-cwd.yang" "not found in local searchdirs"
10-
}}
11-
125
test disable_searchdir_twice {Unsuccessfully imports module due to -D -D} {
136
ly_cmd "$mdir/ietf-ip.yang"
147
ly_cmd_err "-D -D $mdir/ietf-ip.yang" "Loading \"ietf-interfaces\" module failed."

0 commit comments

Comments
 (0)