Em seg., 16 de set. de 2024 às 14:02, Eriberto <eribe...@eriberto.pro.br> escreveu: > > Hi again, > > Em seg., 26 de ago. de 2024 às 12:27, Joao Eriberto Mota Filho > <eribe...@debian.org> escreveu: > > > > Package: exiflooter > > Version: 1.0.0+git20231228.22e4700-1 > > Severity: serious > > Justification: regression > > > > Dear maintainer, > > > > The CI test for exiflooter fails as shown below: > > > > autopkgtest [11:42:23]: test integration-test.sh: [----------------------- > > Output does not match the expected content. > > autopkgtest [11:42:23]: test integration-test.sh: -----------------------] > > autopkgtest [11:42:23]: test integration-test.sh: - - - - - - - - - - > > results - - - - - - - - - - > > integration-test.sh FAIL non-zero exit status 1 > > > > The main cause of this issue is the test debian/tests/integration-test.sh > > uses > > the variable $exiflooter_output to store the results of the following > > command: > > > > exiflooter_output=$(exiflooter -i "$INPUT_DIRECTORY") > > > > Consequently, all data put in a variable ignores line breaks and it will > > cause > > a not match with the content of the file > > debian/tests/output/expected_output.txt. > > > > A solution is remove all line breaks from the expected_output.txt. Another > > simple solution is to use the grep command to test a match fot some results > > in > > $exiflooter_output. > > > > Regards, > > > > Eriberto > > > > > I was wrong. Taking a deeper look, it is possible to see that some > data for the two pictures in the debian/tests/images directory > differs. I also tested this with the exiftool command. The latitude, > longitude, and altitude data are different in the two pictures. > Therefore, a diff between the results will never produce exit 0. > > Regards, > > Eriberto
Please, disregard my last message. I said something that has nothing to do with the problem. Now, I think the real problem is that the command may be reading the directory contents differently from time to time. It may be reading 1.jpg and then 2.jpg at some point, and at other times 2.jpg and then 1.jpg. I will investigate. Eriberto