lorax/tests
Alexander Todorov c9d706a382 Copy blueprints used for testing to temporary directory
If trying to execute test_cli.sh inside a git checkout
we are going to get the following exception:

Traceback (most recent call last):
  File "./src/sbin/lorax-composer", line 251, in <module>
    repo = open_or_create_repo(server.config["REPO_DIR"])
  File "/home/jenkins/lorax/src/pylorax/api/recipes.py", line 306, in open_or_create_repo
gi.repository.GLib.Error: ggit-error: failed to stat '/home/jenkins/lorax/tests/pylorax/blueprints': Permission denied (-1)
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib64/python3.7/multiprocessing/popen_fork.py", line 54, in _send_signal
    os.kill(self.pid, sig)

From what I can tell open_or_create_repo() is trying to initialize
a git repository inside the blueprints directory which fails when
we have an active git checkout.

This doesn't happen when we run the tests in Travis CI because
rsync excludes .git/ inside the Docker container.
2018-11-29 09:46:06 +02:00
..
cli new test: build an image and deploy it on Azure 2018-11-21 11:39:15 +02:00
composer Add tests for limit=0 routes 2018-08-27 11:05:46 -07:00
lib Add pylint testing 2014-05-09 08:10:41 -07:00
pylint Fix pylint errors and warnings 2018-09-25 13:49:40 +03:00
pylorax Add tests for partitioned disk images 2018-11-12 11:13:37 -08:00
__init__.py Add a test library 2018-08-06 16:53:48 -07:00
lib.py Add tests for pylorax.imgutils 2018-11-12 11:13:37 -08:00
test_cli.sh Copy blueprints used for testing to temporary directory 2018-11-29 09:46:06 +02:00
testenv.sh Add pylint testing 2014-05-09 08:10:41 -07:00