Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • diffoscope diffoscope
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 145
    • Issues 145
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Reproducible BuildsReproducible Builds
  • diffoscopediffoscope
  • Issues
  • #243
Closed
Open
Issue created Mar 07, 2021 by Sebix Sebix@sebix

Test test_difference fails on quine test with file 5.39

On openSUSE Tumbleweed I get this test fail:

[   31s] _______________________________ test_difference ________________________________
[   31s] 
[   31s] differences = [<Difference filetype from file(1) -- filetype from file(1) []>, <Difference filetype from diffoscope -- filetype from...ent -- r/r.zip []>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]>]
[   31s] 
[   31s]     @skip_unless_file_version_is_at_least("5.37")
[   31s]     def test_difference(differences):
[   31s]         expected_diff = get_data("quine_expected_diff")
[   31s] >       assert differences[0].unified_diff == expected_diff
[   31s] E       assert '@@ -1 +1 @@\... to extract\n' == '@@ -1 +1 @@\... to extract\n'
[   31s] E           @@ -1 +1 @@
[   31s] E           -gzip compressed data, was "recursive", from FAT filesystem (MS-DOS, OS/2, NT)
[   31s] E         - +Zip archive data, at least v2.0 to extract
[   31s] E         + +Zip archive data, at least v2.0 to extract Zip archive data, at least v2.0 to extract

The version of file is 5.39

For the quine file, file returns:

$ file diffoscope-168/tests/data/quine.zip 
diffoscope-168/tests/data/quine.zip: Zip archive data, at least v2.0 to extract Zip archive data, at least v2.0 to extract

While this seems to be expected:

Zip archive data, at least v2.0 to extract

I don't know if this could be a bug in this version of file.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking