1. The first time I ran the tests without starting any server and I got the following result for every test:
.........E....EEEEEEEEEEEEE...............EE...............EEEE.....................................................................................................EE.EEEEEEE.EEE
======================================================================
ERROR: setUpClass (test_arbitrary_package_attack.TestArbitraryPackageAttack)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/kainaat/OpenSourceContributions/tuf/tests/test_arbitrary_package_attack.py", line 71, in setUpClass
cls.server_process_handler = utils.TestServerProcess(log=logger)
File "/home/kainaat/OpenSourceContributions/tuf/tests/utils.py", line 165, in __init__
raise e
File "/home/kainaat/OpenSourceContributions/tuf/tests/utils.py", line 160, in __init__
self._start_server(timeout, extra_cmd_args, popen_cwd)
File "/home/kainaat/OpenSourceContributions/tuf/tests/utils.py", line 179, in _start_server
self._wait_for_port(timeout)
File "/home/kainaat/OpenSourceContributions/tuf/tests/utils.py", line 256, in _wait_for_port
raise TestServerProcessError(self.server + ' did not print port ' \
tests.utils.TestServerProcessError: 'simple_server.py did not print port message as first stdout line as expected!'
2. I followed the
Quickstart guide and was able to run it successfully. Then to run the tests under /tests folder I setup the server in "tests" using "
python3 -m http.server 8001" and ran the tests from the "tests" folder.
I get the same error as above for every test! Do I need to create a tufrepo in the tests folder?
Let me know if I am approaching this incorrectly and can share logs.
Regards,
Kainaat