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

Reply via email to