Menu

#36 Tests fail: No such file or directory: '../examples/test22, etc

1.4.x
wont-fix
None
5
2021-09-07
2021-09-07
Yuri
No
$ ./test80.py
Traceback (most recent call last):
  File "./test80.py", line 5, in <module>
    simple_test.test("test22", ["asdf", "-n", "mike", "asdf", "fds", "xxx", ])
  File "/disk-samsung/freebsd-ports/devel/tclap/work/tclap-1.4.0-rc1/tests/simple_test.py", line 18, in test
    test = subprocess.Popen([test_bin] + args,
  File "/usr/local/lib/python3.8/subprocess.py", line 858, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/local/lib/python3.8/subprocess.py", line 1704, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '../examples/test22'

Version: 1.4.0-rc1

Discussion

  • Daniel Aarno

    Daniel Aarno - 2021-09-07

    Please run ctest from the build directory.

     
  • Daniel Aarno

    Daniel Aarno - 2021-09-07
    • status: open --> wont-fix
    • assigned_to: Daniel Aarno
     
  • Yuri

    Yuri - 2021-09-07

    In the build directory ctest fails:

    [yuri@yv /usr/ports/devel/tclap/work/tclap-1.4.0-rc1]$ CTEST_OUTPUT_ON_FAILURE=1 ctest . 
    Test project /usr/ports/devel/tclap/work/tclap-1.4.0-rc1
            Start   1: test1
      1/112 Test   #1: test1 ............................***Failed    0.13 sec
    Traceback (most recent call last):
      File "/disk-samsung/freebsd-ports/devel/tclap/work/tclap-1.4.0-rc1/tests/test1.py", line 5, in <module>
        simple_test.test("test1", ["-r", "-n", "mike"])
      File "/disk-samsung/freebsd-ports/devel/tclap/work/tclap-1.4.0-rc1/tests/simple_test.py", line 18, in test
        test = subprocess.Popen([test_bin] + args,
      File "/usr/local/lib/python3.8/subprocess.py", line 858, in __init__
        self._execute_child(args, executable, preexec_fn, close_fds,
      File "/usr/local/lib/python3.8/subprocess.py", line 1704, in _execute_child
        raise child_exception_type(errno_num, err_msg, err_filename)
    FileNotFoundError: [Errno 2] No such file or directory: '../examples/test1'
    
            Start   2: test10
      2/112 Test   #2: test10 ...........................***Failed    0.13 sec
    Traceback (most recent call last):
      File "/disk-samsung/freebsd-ports/devel/tclap/work/tclap-1.4.0-rc1/tests/test10.py", line 5, in <module>
        simple_test.test("test2", ["-i", "10", "-s", "hello", ], expect_fail=True)
      File "/disk-samsung/freebsd-ports/devel/tclap/work/tclap-1.4.0-rc1/tests/simple_test.py", line 18, in test
        test = subprocess.Popen([test_bin] + args,
      File "/usr/local/lib/python3.8/subprocess.py", line 858, in __init__
        self._execute_child(args, executable, preexec_fn, close_fds,
      File "/usr/local/lib/python3.8/subprocess.py", line 1704, in _execute_child
        raise child_exception_type(errno_num, err_msg, err_filename)
    FileNotFoundError: [Errno 2] No such file or directory: '../examples/test2'
    
            Start   3: test100
      3/112 Test   #3: test100 ..........................***Failed    0.13 sec
    Traceback (most recent call last):
      File "/disk-samsung/freebsd-ports/devel/tclap/work/tclap-1.4.0-rc1/tests/test100.py", line 5, in <module>
        simple_test.test("test35", ["-h", ])
      File "/disk-samsung/freebsd-ports/devel/tclap/work/tclap-1.4.0-rc1/tests/simple_test.py", line 18, in test
        test = subprocess.Popen([test_bin] + args,
      File "/usr/local/lib/python3.8/subprocess.py", line 858, in __init__
        self._execute_child(args, executable, preexec_fn, close_fds,
      File "/usr/local/lib/python3.8/subprocess.py", line 1704, in _execute_child
        raise child_exception_type(errno_num, err_msg, err_filename)
    FileNotFoundError: [Errno 2] No such file or directory: '../examples/test35'
    
            Start   4: test101
      4/112 Test   #4: test101 ..........................***Failed    0.13 sec
    Traceback (most recent call last):
      File "/disk-samsung/freebsd-ports/devel/tclap/work/tclap-1.4.0-rc1/tests/test101.py", line 5, in <module>
        simple_test.test("test35", ["-h", "-a", "5", ])
      File "/disk-samsung/freebsd-ports/devel/tclap/work/tclap-1.4.0-rc1/tests/simple_test.py", line 18, in test
        test = subprocess.Popen([test_bin] + args,
      File "/usr/local/lib/python3.8/subprocess.py", line 858, in __init__
        self._execute_child(args, executable, preexec_fn, close_fds,
      File "/usr/local/lib/python3.8/subprocess.py", line 1704, in _execute_child
        raise child_exception_type(errno_num, err_msg, err_filename)
    FileNotFoundError: [Errno 2] No such file or directory: '../examples/test35'
    
     

Log in to post a comment.

MongoDB Logo MongoDB