Install setup error

Issue #30 resolved
Former user created an issue

Hi have this error when I tried to run the run_foreman.py run_tests

**Binding to database. Database initialised. Traceback (most recent call last): File "/usr/local/bin/run_foreman.py", line 4, in <module> import('pkg_resources').run_script('Foreman-Forensics==0.0.1', 'run_foreman.py') File "build/bdist.linux-x86_64/egg/pkg_resources/init.py", line 735, in run_script

File "build/bdist.linux-x86_64/egg/pkg_resources/init.py", line 1652, in run_script

File "/usr/local/lib/python2.7/dist-packages/Foreman_Forensics-0.0.1-py2.7.egg/EGG-INFO/scripts/run_foreman.py", line 104, in <module> args.func(args) File "/usr/local/lib/python2.7/dist-packages/Foreman_Forensics-0.0.1-py2.7.egg/EGG-INFO/scripts/run_foreman.py", line 62, in run_tests populate_test_database() File "/usr/local/lib/python2.7/dist-packages/Foreman_Forensics-0.0.1-py2.7.egg/foreman/utils/utils.py", line 90, in populate_test_database create_test_data() File "/usr/local/lib/python2.7/dist-packages/Foreman_Forensics-0.0.1-py2.7.egg/foreman/utils/test_population.py", line 220, in create_test_data population.load_initial_values_test() File "/usr/local/lib/python2.7/dist-packages/Foreman_Forensics-0.0.1-py2.7.egg/foreman/utils/population.py", line 46, in load_initial_values_test c_list_location=path.abspath(path.join(ROOT_DIR, "utils", "test_case_names.txt"))) File "<string>", line 4, in init File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/state.py", line 196, in _initialize_instance File "/usr/local/lib/python2.7/dist-packages/Foreman_Forensics-0.0.1-py2.7.egg/foreman/model/generalModel.py", line 45, in init self.c_list_name = self.import_list(c_list_location) File "/usr/local/lib/python2.7/dist-packages/Foreman_Forensics-0.0.1-py2.7.egg/foreman/model/generalModel.py", line 71, in import_list shutil.copy(list_location, destination) File "/usr/lib/python2.7/shutil.py", line 119, in copy copyfile(src, dst) File "/usr/lib/python2.7/shutil.py", line 82, in copyfile with open(src, 'rb') as fsrc: IOError: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/Foreman_Forensics-0.0.1-py2.7.egg/foreman/utils/test_case_names.txt'**

Comments (3)

  1. Lowmanio repo owner

    Hi there, what was the full command you did to run the tests? It should be something like:

    python run_foreman.py run_tests foreman\config\test_config.ini

  2. Log in to comment