From 6d08a524726d1a04772a7a20e864ef5356a59fe3 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Sat, 2 Jun 2018 10:44:47 +0200 Subject: [PATCH] update test --- tests-ng/duplicate-key.sh | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/tests-ng/duplicate-key.sh b/tests-ng/duplicate-key.sh index 37e883d..16aaba9 100755 --- a/tests-ng/duplicate-key.sh +++ b/tests-ng/duplicate-key.sh @@ -68,22 +68,30 @@ profiles: dotfiles: - f_abc _EOF +cat ${cfg} -# create the source +# create the imported one mkdir -p ${tmps}/dotfiles/${tmpd} echo "test" > ${tmps}/dotfiles/${tmpd}/abc +echo "test" > ${tmpd}/abc -mkdir -p ${tmps}/dotfiles/${tmpd}/sub -echo "test2" > ${tmps}/dotfiles/${tmpd}/sub/abc +# create the to-be-imported +mkdir -p ${tmpd}/sub +echo "test2" > ${tmpd}/sub/abc -mkdir -p ${tmps}/dotfiles/${tmpd}/sub/sub2 -echo "test2" > ${tmps}/dotfiles/${tmpd}/sub/sub2/abc +mkdir -p ${tmpd}/sub/sub2 +echo "test2" > ${tmpd}/sub/sub2/abc + +mkdir -p ${tmpd}/sub/sub +echo "test2" > ${tmpd}/sub/sub/abc # import cd ${ddpath} | ${bin} import -c ${cfg} -p p2 \ - ${tmps}/dotfiles/${tmpd}/sub/abc \ - ${tmps}/dotfiles/${tmpd}/sub/abc \ - ${tmps}/dotfiles/${tmpd}/sub/sub2/abc + ${tmpd}/abc \ + ${tmpd}/sub/abc \ + ${tmpd}/sub/abc \ + ${tmpd}/sub/sub/abc \ + ${tmpd}/sub/sub2/abc cat ${cfg}