1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 16:49:42 +00:00
This commit is contained in:
deadc0de6
2023-12-28 20:25:52 +01:00
committed by deadc0de
parent 0122b19ad7
commit fbabaa4f44

View File

@@ -250,13 +250,16 @@ clean_both
create_in_dst create_in_dst
create_in_dotpath create_in_dotpath
####
# changed in dotpath
rm "${dotpath}/mpv/watch_later/watch_later_file" rm "${dotpath}/mpv/watch_later/watch_later_file"
# this should succeed (no diff) # this should succeed (no diff)
cd "${ddpath}" | ${bin} compare -c "${cfg1}" -p p1 -V cd "${ddpath}" | ${bin} compare -c "${cfg1}" -p p1 -V
rm -r "${dotpath}/mpv/watch_later" rm -r "${dotpath}/mpv/watch_later"
set +e set +e
# this should fail # this should fail since it should shows that
# the keepme* are not present
cd "${ddpath}" | ${bin} compare -c "${cfg1}" -p p1 -V && echo "compare cfg1 1 should failed" && exit 1 cd "${ddpath}" | ${bin} compare -c "${cfg1}" -p p1 -V && echo "compare cfg1 1 should failed" && exit 1
set -e set -e
@@ -264,13 +267,16 @@ clean_both
create_in_dst create_in_dst
create_in_dotpath create_in_dotpath
####
# changed in dest
rm "${tmpd}/mpv/watch_later/watch_later_file" rm "${tmpd}/mpv/watch_later/watch_later_file"
# this should succeed (no diff) # this should succeed (no diff)
cd "${ddpath}" | ${bin} compare -c "${cfg1}" -p p1 -V cd "${ddpath}" | ${bin} compare -c "${cfg1}" -p p1 -V
rm -r "${tmpd}/mpv/watch_later" rm -r "${tmpd}/mpv/watch_later"
set +e set +e
# this should fail # this should fail since it should shows that
# the keepme* are not present
cd "${ddpath}" | ${bin} compare -c "${cfg1}" -p p1 -V && echo "compare cfg1 2 should failed" && exit 1 cd "${ddpath}" | ${bin} compare -c "${cfg1}" -p p1 -V && echo "compare cfg1 2 should failed" && exit 1
set -e set -e
@@ -278,13 +284,16 @@ clean_both
create_in_dst create_in_dst
create_in_dotpath create_in_dotpath
####
# changed in dotpath
rm "${dotpath}/mpv/watch_later/watch_later_file" rm "${dotpath}/mpv/watch_later/watch_later_file"
# this should succeed (no diff) # this should succeed (no diff)
cd "${ddpath}" | ${bin} compare -c "${cfg2}" -p p1 -V cd "${ddpath}" | ${bin} compare -c "${cfg2}" -p p1 -V
rm -r "${dotpath}/mpv/watch_later" rm -r "${dotpath}/mpv/watch_later"
set +e set +e
# this should fail # this should fail since it should shows that
# the keepme* are not present
cd "${ddpath}" | ${bin} compare -c "${cfg2}" -p p1 -V && echo "compare cfg2 1 should failed" && exit 1 cd "${ddpath}" | ${bin} compare -c "${cfg2}" -p p1 -V && echo "compare cfg2 1 should failed" && exit 1
set -e set -e
@@ -292,13 +301,16 @@ clean_both
create_in_dst create_in_dst
create_in_dotpath create_in_dotpath
####
# changed in dest
rm "${tmpd}/mpv/watch_later/watch_later_file" rm "${tmpd}/mpv/watch_later/watch_later_file"
# this should succeed (no diff) # this should succeed (no diff)
cd "${ddpath}" | ${bin} compare -c "${cfg2}" -p p1 -V cd "${ddpath}" | ${bin} compare -c "${cfg2}" -p p1 -V
rm -r "${tmpd}/mpv/watch_later" rm -r "${tmpd}/mpv/watch_later"
set +e set +e
# this should fail # this should fail since it should shows that
# the keepme* are not present
cd "${ddpath}" | ${bin} compare -c "${cfg2}" -p p1 -V && echo "compare cfg2 2 should failed" && exit 1 cd "${ddpath}" | ${bin} compare -c "${cfg2}" -p p1 -V && echo "compare cfg2 2 should failed" && exit 1
set -e set -e