d/t/run-unit-test: Fix unit-test for new release. Closes: #1075917
authorMathieu Malaterre <malat@debian.org>
Mon, 8 Jul 2024 11:26:25 +0000 (13:26 +0200)
committerMathieu Malaterre <malat@debian.org>
Mon, 8 Jul 2024 11:27:23 +0000 (13:27 +0200)
debian/tests/run-unit-test

index 5ed6c1f740950cde15d0adc183faa6df71dc55ea..97dcb12636f2d82cffff3bfd873e776bd9d237a3 100644 (file)
@@ -13,14 +13,14 @@ if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
 fi
 
 cp -a /usr/lib/python3/dist-packages/pydicom/data/test_files/CT_small.dcm "${AUTOPKGTEST_TMP}"
-cp -a /usr/share/libdcmtk17/dicom.dic "${AUTOPKGTEST_TMP}"
+cp -a /usr/share/dcmtk/dicom.dic "${AUTOPKGTEST_TMP}"
 
 
 export DCMDICTPATH=${AUTOPKGTEST_TMP}/dicom.dic
 
 cd "${AUTOPKGTEST_TMP}"
 
-echo "15e7e2a11cdeabac32e1134674beda6b  CT_small.dcm" >> checksums
+echo "896048a80ff192ca8b6d9a1ba29d64fd  CT_small.dcm" >> checksums
 
 echo "Running Tests"
 
@@ -58,7 +58,10 @@ dcmftest CT_small.dcm
 
 echo "Test 9"
 
-dcmodify -e "(0008,0031)" CT_small.dcm
+# only write the dataset so that the file meta information
+# does not change and we can keep the same md5sum
+
+dcmodify --write-dataset -e "(0008,0031)" CT_small.dcm
 
 echo "Test 10"