lorax/tests
Alexander Todorov 9c17c0cc6c 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.

(cherry picked from commit c9d706a382)
2019-05-03 16:43:35 -07:00
..
cli new test: build an image and deploy it on Azure 2019-05-03 16:40:54 -07: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-10-05 09:09:10 -07:00
pylorax Add tests for partitioned disk images 2019-05-03 16:39:18 -07:00
__init__.py Add a test library 2018-08-06 16:53:48 -07:00
lib.py Add tests for pylorax.imgutils 2019-05-03 16:39:05 -07:00
test_cli.sh Copy blueprints used for testing to temporary directory 2019-05-03 16:43:35 -07:00
testenv.sh Add pylint testing 2014-05-09 08:10:41 -07:00