Cleanup: remove "-noaudio" argument in background mode
This is no longer needed as background mode implies -noaudio.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
"""
|
||||
./blender.bin --background -noaudio --factory-startup --python tests/python/bl_alembic_io_test.py -- --testdir /path/to/lib/tests/alembic
|
||||
./blender.bin --background --factory-startup --python tests/python/bl_alembic_io_test.py -- --testdir /path/to/lib/tests/alembic
|
||||
"""
|
||||
|
||||
import math
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
"""
|
||||
blender -b -noaudio --factory-startup --python tests/python/bl_animation_armature.py
|
||||
blender -b --factory-startup --python tests/python/bl_animation_armature.py
|
||||
"""
|
||||
|
||||
import unittest
|
||||
|
||||
@@ -9,7 +9,7 @@ import sys
|
||||
from rna_prop_ui import rna_idprop_quote_path
|
||||
|
||||
"""
|
||||
blender -b -noaudio --factory-startup --python tests/python/bl_animation_drivers.py -- --testdir /path/to/lib/tests/animation
|
||||
blender -b --factory-startup --python tests/python/bl_animation_drivers.py -- --testdir /path/to/lib/tests/animation
|
||||
"""
|
||||
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
"""
|
||||
blender -b -noaudio --factory-startup --python tests/python/bl_animation_fcurves.py -- --testdir /path/to/lib/tests/animation
|
||||
blender -b --factory-startup --python tests/python/bl_animation_fcurves.py -- --testdir /path/to/lib/tests/animation
|
||||
"""
|
||||
|
||||
import pathlib
|
||||
|
||||
@@ -9,7 +9,7 @@ import sys
|
||||
from math import radians
|
||||
|
||||
"""
|
||||
blender -b -noaudio --factory-startup --python tests/python/bl_animation_keyframing.py -- --testdir /path/to/lib/tests/animation
|
||||
blender -b --factory-startup --python tests/python/bl_animation_keyframing.py -- --testdir /path/to/lib/tests/animation
|
||||
"""
|
||||
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# ./blender.bin --background -noaudio --python tests/python/bl_blendfile_io.py
|
||||
# ./blender.bin --background --python tests/python/bl_blendfile_io.py
|
||||
import bpy
|
||||
import os
|
||||
import sys
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# ./blender.bin --background -noaudio --python tests/python/bl_blendfile_liblink.py
|
||||
# ./blender.bin --background --python tests/python/bl_blendfile_liblink.py
|
||||
import bpy
|
||||
import os
|
||||
import sys
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# ./blender.bin --background -noaudio --python tests/python/bl_blendfile_library_overrides.py -- --output-dir=/tmp/
|
||||
# ./blender.bin --background --python tests/python/bl_blendfile_library_overrides.py -- --output-dir=/tmp/
|
||||
import pathlib
|
||||
import bpy
|
||||
import sys
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# ./blender.bin --background -noaudio --python tests/python/bl_blendfile_versioning.py ..
|
||||
# ./blender.bin --background --python tests/python/bl_blendfile_versioning.py ..
|
||||
import bpy
|
||||
import os
|
||||
import sys
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
"""
|
||||
./blender.bin --background -noaudio --factory-startup --python tests/python/bl_constraints.py -- --testdir /path/to/lib/tests/constraints
|
||||
./blender.bin --background --factory-startup --python tests/python/bl_constraints.py -- --testdir /path/to/lib/tests/constraints
|
||||
"""
|
||||
|
||||
import pathlib
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# ./blender.bin --background -noaudio --python tests/python/bl_id_management.py -- --verbose
|
||||
# ./blender.bin --background --python tests/python/bl_id_management.py -- --verbose
|
||||
import bpy
|
||||
import unittest
|
||||
import random
|
||||
|
||||
@@ -15,7 +15,6 @@ def get_arguments(filepath, output_filepath):
|
||||
|
||||
args = [
|
||||
"--background",
|
||||
"-noaudio",
|
||||
"--factory-startup",
|
||||
"--enable-autoexec",
|
||||
"--debug-memory",
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
# ./blender.bin --background -noaudio --factory-startup --python tests/python/bl_keymap_validate.py
|
||||
# ./blender.bin --background --factory-startup --python tests/python/bl_keymap_validate.py
|
||||
#
|
||||
|
||||
"""
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
# simple script to enable all addons, and disable
|
||||
|
||||
"""
|
||||
./blender.bin --background -noaudio --factory-startup --python tests/python/bl_load_addons.py
|
||||
./blender.bin --background --factory-startup --python tests/python/bl_load_addons.py
|
||||
"""
|
||||
|
||||
import bpy
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
# simple script to enable all addons, and disable
|
||||
|
||||
"""
|
||||
./blender.bin --background -noaudio --factory-startup --python tests/python/bl_load_py_modules.py
|
||||
./blender.bin --background --factory-startup --python tests/python/bl_load_py_modules.py
|
||||
"""
|
||||
|
||||
import bpy
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
# ./blender.bin --background -noaudio --python tests/python/bl_pyapi_bpy_driver_secure_eval.py -- --verbose
|
||||
# ./blender.bin --background --python tests/python/bl_pyapi_bpy_driver_secure_eval.py -- --verbose
|
||||
import bpy
|
||||
import unittest
|
||||
import builtins
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# ./blender.bin --background -noaudio --python tests/python/bl_pyapi_bpy_path.py -- --verbose
|
||||
# ./blender.bin --background --python tests/python/bl_pyapi_bpy_path.py -- --verbose
|
||||
import unittest
|
||||
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# ./blender.bin --background -noaudio --python tests/python/bl_pyapi_bpy_utils_units.py -- --verbose
|
||||
# ./blender.bin --background --python tests/python/bl_pyapi_bpy_utils_units.py -- --verbose
|
||||
import unittest
|
||||
|
||||
from bpy.utils import units
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# ./blender.bin --background -noaudio --python tests/python/bl_pyapi_idprop.py -- --verbose
|
||||
# ./blender.bin --background --python tests/python/bl_pyapi_idprop.py -- --verbose
|
||||
import bpy
|
||||
import idprop
|
||||
import unittest
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
# ./blender.bin --background -noaudio --python tests/python/bl_pyapi_idprop_datablock.py -- --verbose
|
||||
# ./blender.bin --background --python tests/python/bl_pyapi_idprop_datablock.py -- --verbose
|
||||
|
||||
import contextlib
|
||||
import inspect
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# ./blender.bin --background -noaudio --python tests/python/bl_pyapi_mathutils.py -- --verbose
|
||||
# ./blender.bin --background --python tests/python/bl_pyapi_mathutils.py -- --verbose
|
||||
import unittest
|
||||
from mathutils import Matrix, Vector, Quaternion, Euler
|
||||
from mathutils import kdtree, geometry
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# ./blender.bin --background -noaudio --python tests/python/bl_pyapi_prop_array.py -- --verbose
|
||||
# ./blender.bin --background --python tests/python/bl_pyapi_prop_array.py -- --verbose
|
||||
import bpy
|
||||
from bpy.props import (
|
||||
BoolVectorProperty,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# ./blender.bin --background -noaudio --python tests/python/bl_pyapi_text.py -- --verbose
|
||||
# ./blender.bin --background --python tests/python/bl_pyapi_text.py -- --verbose
|
||||
import bpy
|
||||
import unittest
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
"""
|
||||
blender -b -noaudio --factory-startup --python tests/python/bl_rigging_symmetrize.py -- --testdir /path/to/lib/tests/animation
|
||||
blender -b --factory-startup --python tests/python/bl_rigging_symmetrize.py -- --testdir /path/to/lib/tests/animation
|
||||
"""
|
||||
|
||||
import pathlib
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# ./blender.bin --background -noaudio --factory-startup --python tests/python/bl_rna_defaults.py
|
||||
# ./blender.bin --background --factory-startup --python tests/python/bl_rna_defaults.py
|
||||
|
||||
import bpy
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
# Use for validating our manual interlinking.
|
||||
# ./blender.bin --background -noaudio --python tests/python/bl_rna_manual_reference.py
|
||||
# ./blender.bin --background --python tests/python/bl_rna_manual_reference.py
|
||||
#
|
||||
# 1) test_data() -- ensure the data we have is correct format
|
||||
# 2) test_lookup_coverage() -- ensure that we have lookups for _every_ RNA path and all patterns are used.
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
# run this script in the game engine.
|
||||
# or on the command line with...
|
||||
# ./blender.bin --background -noaudio --python tests/python/bl_rst_completeness.py
|
||||
# ./blender.bin --background --python tests/python/bl_rst_completeness.py
|
||||
'''
|
||||
filepath = "/src/blender/tests/python/bl_rst_completeness.py"
|
||||
exec(compile(open(filepath).read(), filepath, 'exec'))
|
||||
|
||||
@@ -23,12 +23,12 @@ execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${TEST_OUT_DIR})
|
||||
# all calls to blender use this
|
||||
if(APPLE)
|
||||
if(${CMAKE_GENERATOR} MATCHES "Xcode")
|
||||
set(TEST_BLENDER_EXE_PARAMS --background -noaudio --factory-startup --debug-memory --debug-exit-on-error)
|
||||
set(TEST_BLENDER_EXE_PARAMS --background --factory-startup --debug-memory --debug-exit-on-error)
|
||||
else()
|
||||
set(TEST_BLENDER_EXE_PARAMS --background -noaudio --factory-startup --debug-memory --debug-exit-on-error --env-system-scripts ${CMAKE_SOURCE_DIR}/scripts)
|
||||
set(TEST_BLENDER_EXE_PARAMS --background --factory-startup --debug-memory --debug-exit-on-error --env-system-scripts ${CMAKE_SOURCE_DIR}/scripts)
|
||||
endif()
|
||||
else()
|
||||
set(TEST_BLENDER_EXE_PARAMS --background -noaudio --factory-startup --debug-memory --debug-exit-on-error --env-system-scripts ${CMAKE_SOURCE_DIR}/scripts)
|
||||
set(TEST_BLENDER_EXE_PARAMS --background --factory-startup --debug-memory --debug-exit-on-error --env-system-scripts ${CMAKE_SOURCE_DIR}/scripts)
|
||||
endif()
|
||||
|
||||
# for testing with valgrind prefix: valgrind --track-origins=yes --error-limit=no
|
||||
|
||||
@@ -19,7 +19,6 @@ except ImportError:
|
||||
def get_arguments(filepath, output_filepath):
|
||||
return [
|
||||
"--background",
|
||||
"-noaudio",
|
||||
"--factory-startup",
|
||||
"--enable-autoexec",
|
||||
"--debug-memory",
|
||||
|
||||
@@ -23,7 +23,6 @@ ENABLE_REALTIME_COMPOSITOR_SCRIPT = "import bpy; " \
|
||||
def get_arguments(filepath, output_filepath):
|
||||
return [
|
||||
"--background",
|
||||
"-noaudio",
|
||||
"--factory-startup",
|
||||
"--enable-autoexec",
|
||||
"--debug-memory",
|
||||
|
||||
@@ -68,7 +68,6 @@ def get_arguments(filepath, output_filepath):
|
||||
|
||||
args = [
|
||||
"--background",
|
||||
"-noaudio",
|
||||
"--factory-startup",
|
||||
"--enable-autoexec",
|
||||
"--debug-memory",
|
||||
|
||||
@@ -84,7 +84,6 @@ def get_gpu_device_type(blender):
|
||||
# TODO: This always fails.
|
||||
command = [
|
||||
blender,
|
||||
"-noaudio",
|
||||
"--background",
|
||||
"--factory-startup",
|
||||
"--python",
|
||||
@@ -104,7 +103,6 @@ def get_gpu_device_type(blender):
|
||||
def get_arguments(filepath, output_filepath):
|
||||
return [
|
||||
"--background",
|
||||
"-noaudio",
|
||||
"--factory-startup",
|
||||
"--enable-autoexec",
|
||||
"--debug-memory",
|
||||
|
||||
@@ -103,7 +103,6 @@ if inside_blender:
|
||||
def get_gpu_device_type(blender):
|
||||
command = [
|
||||
blender,
|
||||
"-noaudio",
|
||||
"--background",
|
||||
"--factory-startup",
|
||||
"--python",
|
||||
@@ -123,7 +122,6 @@ def get_gpu_device_type(blender):
|
||||
def get_arguments(filepath, output_filepath):
|
||||
return [
|
||||
"--background",
|
||||
"-noaudio",
|
||||
"--factory-startup",
|
||||
"--enable-autoexec",
|
||||
"--debug-memory",
|
||||
|
||||
@@ -60,7 +60,6 @@ class AbstractBlenderRunnerTest(unittest.TestCase):
|
||||
command = [
|
||||
self.blender,
|
||||
'--background',
|
||||
'-noaudio',
|
||||
'--factory-startup',
|
||||
'--enable-autoexec',
|
||||
'--debug-memory',
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
# Used for generating API diffs between releases
|
||||
# ./blender.bin --background -noaudio --python tests/python/rna_info_dump.py
|
||||
# ./blender.bin --background --python tests/python/rna_info_dump.py
|
||||
|
||||
import bpy
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@ def get_arguments(filepath, output_filepath):
|
||||
|
||||
args = [
|
||||
"--background",
|
||||
"-noaudio",
|
||||
"--factory-startup",
|
||||
"--enable-autoexec",
|
||||
"--debug-memory",
|
||||
|
||||
@@ -38,7 +38,6 @@ if inside_blender:
|
||||
def get_arguments(filepath, output_filepath):
|
||||
return [
|
||||
"--background",
|
||||
"-noaudio",
|
||||
"--factory-startup",
|
||||
"--enable-autoexec",
|
||||
"--debug-memory",
|
||||
|
||||
@@ -17,7 +17,7 @@ execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${TEST_OUT_DIR})
|
||||
# endif()
|
||||
|
||||
# for testing with valgrind prefix: valgrind --track-origins=yes --error-limit=no
|
||||
set(TEST_BLENDER_EXE $<TARGET_FILE:blender> --background -noaudio --factory-startup --debug-memory --debug-exit-on-error --env-system-scripts ${CMAKE_SOURCE_DIR}/scripts)
|
||||
set(TEST_BLENDER_EXE $<TARGET_FILE:blender> --background --factory-startup --debug-memory --debug-exit-on-error --env-system-scripts ${CMAKE_SOURCE_DIR}/scripts)
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
@@ -37,7 +37,6 @@ if inside_blender:
|
||||
def get_arguments(filepath, output_filepath):
|
||||
return [
|
||||
"--background",
|
||||
"-noaudio",
|
||||
"--factory-startup",
|
||||
"--enable-autoexec",
|
||||
"--debug-memory",
|
||||
|
||||
Reference in New Issue
Block a user