From 13993426ac890c45571f70b53a1dcb91a8761286 Mon Sep 17 00:00:00 2001 From: Francesco Siddi Date: Thu, 27 Nov 2014 13:18:19 +0100 Subject: [PATCH] Get blender binary from evn if set --- tests/test_cli.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_cli.py b/tests/test_cli.py index eb6dcce..1be9d95 100755 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -288,6 +288,7 @@ def file_quick_write(path, filepart=None, data=None): with open(path, mode) as f: f.write(data) + def file_quick_read(path, filepart=None, mode='rb'): if filepart is not None: @@ -357,8 +358,9 @@ def blendfile_template_create(blendfile, blendfile_root, create_id, create_data, else: blendfile_create_data_json = None + blender = os.getenv('BLENDER_BIN', "blender") cmd = ( - "blender", + blender, "--background", "--factory-startup", "-noaudio", @@ -626,6 +628,7 @@ class BamSessionTestCase(unittest.TestCase): self.assertEqual("", stderr) return proj_path, session_path + class BamInitTest(BamSessionTestCase): """Test the `bam init user@http://bamserver/projectname` command. We verify that a project folder is created, and that it contains a .bam subfolder