21
21
if ! command -v ' tree' > ' /dev/null' ; then
22
22
skip_all ' "tree" command not available'
23
23
fi
24
- set_test_number 9
24
+ set_test_number 13
25
25
26
26
# Need to override any symlink dirs set in global.cylc:
27
27
create_test_global_config " " "
@@ -41,6 +41,7 @@ make_rnd_workflow
41
41
pushd " ${RND_WORKFLOW_SOURCE} " || exit 1
42
42
mkdir .git .svn dir1 dir2-be-removed
43
43
touch .git/file1 .svn/file1 dir1/file1 dir2-be-removed/file1 file1 file2
44
+ echo ' 01-*' > .cylcignore # filter out test files
44
45
run_ok " ${TEST_NAME} " cylc install
45
46
46
47
tree_excludes=' *.log|01-file-transfer*|rose-suite*.conf|opt'
@@ -68,12 +69,12 @@ touch new_dir/new_file1 new_dir/new_file2
68
69
rm -rf dir2-be-removed file2
69
70
run_ok " ${TEST_NAME} -reinstall" cylc reinstall " ${RND_WORKFLOW_NAME} /run2"
70
71
REINSTALL_LOG=" $( find " ${RND_WORKFLOW_RUNDIR} /run2/log/install" -type f -name ' *reinstall.log' ) "
71
- grep_ok "
72
- del. dir2-be-removed/file1
73
- del. file2
74
- send new_dir/
75
- send new_dir/new_file1
76
- send new_dir/new_file2" " ${REINSTALL_LOG} "
72
+ log_scan " ${TEST_NAME_BASE} -reinstall-log " " $REINSTALL_LOG " 1 0 \
73
+ ' del. dir2-be-removed/file1' \
74
+ ' del. file2' \
75
+ ' send new_dir/$ ' \
76
+ ' send new_dir/new_file1' \
77
+ ' send new_dir/new_file2'
77
78
78
79
tree -a -v -I " ${tree_excludes} " --charset=ascii --noreport " ${RND_WORKFLOW_RUNDIR} /run2" > ' after-reinstall-run2-tree.out'
79
80
cmp_ok ' after-reinstall-run2-tree.out' << __OUT__
0 commit comments