lanl / Pavilion

HPC testing harness
BSD 3-Clause "New" or "Revised" License
16 stars 12 forks source link

2.0 - Copy test build into working space #46

Closed pflarr closed 5 years ago

pflarr commented 6 years ago

In old pavilion, this often copied the entire test source into the working space. In 2.0, we'll be building a directory structure that consists entirely of sim-links into the pre-built test. The bash way to do this would be to cp -as the build directory, but it's probably best to just do this in python.

nicholas-sly commented 6 years ago

I can't assign this to myself, but I'm looking at it now. I'm going to just implement it as a function in its own file for now and reference that from the current pavilion files for testing.

The process I've sort of worked out for now is to assume that the working space directory has already been determined and to iterate over the source_location using os.scandir() to create the directory structure with symlinks to all files.

Does this seem reasonable?