From: Alain Spineux Date: Fri, 2 Sep 2022 09:35:37 +0000 (+0200) Subject: regress: tweak snapshot-lvm-test for sqlite X-Git-Tag: Beta-15.0.0~450 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c99e85259cdc423e88688dda7101ea3b5846aed5;p=thirdparty%2Fbacula.git regress: tweak snapshot-lvm-test for sqlite - the auto numbering is not the same between pgsql and sqlite - the counter are shared by all "serial" in pgsql - while each "auto increment" have there own counter --- diff --git a/regress/tests/snapshot-lvm-test b/regress/tests/snapshot-lvm-test index 3339d9794..4fac7da16 100755 --- a/regress/tests/snapshot-lvm-test +++ b/regress/tests/snapshot-lvm-test @@ -10,6 +10,13 @@ TestName="snapshot-lvm-test" JobName=Incremental . scripts/functions +SNAP1=1 +SNAP3=3 +if [ x$WHICHDB != x"--with-sqlite3" ]; then + # the numbering is different when using sqlite + SNAP3=2 +fi + ${rscripts}/cleanup ${rscripts}/copy-test-confs @@ -113,12 +120,12 @@ list files jobid=1 @$out ${tmp}/list1.snap_listclient snapshot listclient @$out ${tmp}/list1.snap_update -snapshot update client snapshotid=1 comment="test1" -snapshot update client snapshotid=1 retention=3 +snapshot update client snapshotid=$SNAP1 comment="test1" +snapshot update client snapshotid=$SNAP1 retention=3 @$out ${tmp}/list1.snap_list2 -.jlist snapshot snapshotid=1 +.jlist snapshot snapshotid=$SNAP1 @$out ${tmp}/list1.snap_list22 -.jlist snapshot snapshotid=3 +.jlist snapshot snapshotid=$SNAP3 @$out ${tmp}/list1.snap_prune @sleep 4 snapshot prune client yes