yanglint TEST searchpath and path
The 'data' directory is intended for data (xml, json...), but there was
nowhere else to put the module for testing the 'path' parameter, and it
seemed pointless to me to create a new directory for one test.
diff --git a/tools/lint/tests/non-interactive/path.test b/tools/lint/tests/non-interactive/path.test
new file mode 100644
index 0000000..bf915ff
--- /dev/null
+++ b/tools/lint/tests/non-interactive/path.test
@@ -0,0 +1,9 @@
+source [expr {[info exists ::env(TESTS_DIR)] ? "$env(TESTS_DIR)/non-interactive/ly.tcl" : "ly.tcl"}]
+
+set mdir $env(YANG_MODULES_DIR)
+
+test path_basic {} {
+ ly_cmd "-p $::env(TESTS_DIR)/data $::env(YANG_MODULES_DIR)/modimp-path.yang"
+} {}
+
+cleanupTests