diff options
Diffstat (limited to 'tests/frontend/rebuild.py')
-rw-r--r-- | tests/frontend/rebuild.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/tests/frontend/rebuild.py b/tests/frontend/rebuild.py index 1cdb45d11..1aef8e423 100644 --- a/tests/frontend/rebuild.py +++ b/tests/frontend/rebuild.py @@ -6,15 +6,12 @@ import pytest from buildstream.testing import cli # pylint: disable=unused-import # Project directory -DATA_DIR = os.path.join( - os.path.dirname(os.path.realpath(__file__)), - "project", -) +DATA_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "project",) def strict_args(args, strict): if strict != "strict": - return ['--no-strict', *args] + return ["--no-strict", *args] return args @@ -24,15 +21,15 @@ def test_rebuild(datafiles, cli, strict): project = str(datafiles) # First build intermediate target.bst - result = cli.run(project=project, args=strict_args(['build', 'target.bst'], strict)) + result = cli.run(project=project, args=strict_args(["build", "target.bst"], strict)) result.assert_success() # Modify base import - with open(os.path.join(project, 'files', 'dev-files', 'usr', 'include', 'new.h'), "w") as f: + with open(os.path.join(project, "files", "dev-files", "usr", "include", "new.h"), "w") as f: f.write("#define NEW") # Rebuild base import and build top-level rebuild-target.bst # In non-strict mode, this does not rebuild intermediate target.bst, # which means that a weakly cached target.bst will be staged as dependency. - result = cli.run(project=project, args=strict_args(['build', 'rebuild-target.bst'], strict)) + result = cli.run(project=project, args=strict_args(["build", "rebuild-target.bst"], strict)) result.assert_success() |