Specman e error: No match for file when using "for each line in file"

Specman e error: No match for file when using "for each line in file"

我在同一目录下有一个my_text.txt文件和下一个e文件:

extend my_unit {

    run() is also {
        for each line in file "my_text.txt" do {
            // ...
        };
    };
};

我收到下一个 运行 错误:

*** Error: No match for file 'my_text.txt'

为什么我会收到错误消息?应该如何使用文本文件中所有行的 for 循环?

感谢您的帮助

文件名是相对于您的工作目录(您 运行 Specman 从中)查找的,而不是相对于编写代码的源文件。 它确实考虑了 SPECMAN_PATH,但可能您的 SPECMAN_PATH 没有直接指向该目录。