Skip to content

Commit

Permalink
Added check of expanded StageComposite property (see spack#11647).
Browse files Browse the repository at this point in the history
  • Loading branch information
tldahlgren committed Jun 7, 2019
1 parent 6d56d45 commit c2f9a9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/spack/spack/test/stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,8 @@ def test_composite_stage_with_noexpand_resource(
composite_stage.create()
composite_stage.fetch()
composite_stage.expand_archive()
assert composite_stage.expanded # Archive is expanded

assert os.path.exists(
os.path.join(composite_stage.source_path, resource_dst_name))

Expand All @@ -492,6 +494,8 @@ def test_composite_stage_with_expand_resource(
composite_stage.fetch()
composite_stage.expand_archive()

assert composite_stage.expanded # Archive is expanded

for fname in mock_expand_resource.files:
file_path = os.path.join(
root_stage.source_path, 'resource-dir', fname)
Expand Down

0 comments on commit c2f9a9a

Please sign in to comment.