Skip to content

Commit 220eddc

Browse files
committed
Exclude Additional Files from Snapshot
1 parent 6c9fe14 commit 220eddc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

scripts/snapshot_into_trilinos.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ def create_snapshot_dir_args(orig_dir, dest_dir, dry_run=False):
156156
"""
157157
args = (f"--orig-dir {orig_dir}/ "
158158
f"--dest-dir {dest_dir}/ "
159-
"--exclude kokkos kokkos-kernels python scripts "
159+
"--exclude kokkos kokkos-kernels python scripts cmake/bob.cmake "
160+
"cmake/detect_trilinos_opts.cmake "
161+
"examples/Python_3D_Convergence.py.in "
160162
"--clean-ignored-files-orig-dir")
161163
if dry_run:
162164
args += " --show-defaults"
@@ -172,7 +174,10 @@ def test_create_snapshot_dir_args():
172174
dest = "to_there"
173175
args = create_snapshot_dir_args(orig, dest)
174176
expected = (f"--orig-dir {orig}/ --dest-dir {dest}/ --exclude kokkos "
175-
"kokkos-kernels python scripts --clean-ignored-files-orig-dir")
177+
"kokkos-kernels python scripts cmake/bob.cmake "
178+
"cmake/detect_trilinos_opts.cmake "
179+
"examples/Python_3D_Convergence.py.in "
180+
"--clean-ignored-files-orig-dir")
176181
assert args == expected.split()
177182
args = create_snapshot_dir_args(orig, dest, dry_run=True)
178183
expected += " --show-defaults"

0 commit comments

Comments
 (0)