Skip to content

hls-stylish-haskell-plugin tests are failing when running from hackage tarball #1818

Closed
@felixonmars

Description

@felixonmars

Your environment

Building hls-stylish-haskell-plugin-1.0.0.0 for Arch Linux.

Which OS do you use:
Arch Linux x86_64

Steps to reproduce

Run tests from a hackage tarball

Actual behaviour

Running 1 test suites...
Test suite tests: RUNNING...
stylish-haskell
  formats a document: FAIL (2.04s)
    Test output was different from 'test/testdata/StylishHaskell.formatted_document.hs'. Output of ["git","diff","--no-index","--text","--exit-code","test/testdata/StylishHaskell.formatted_document.hs","/tmp/StylishHaskell.formatted_document2685-3.actual"]:
    diff --git a/test/testdata/StylishHaskell.formatted_document.hs b/tmp/StylishHaskell.formatted_document2685-3.actual
    old mode 100755
    new mode 100644
  formats a range:    FAIL (3.77s)
    Test output was different from 'test/testdata/StylishHaskell.formatted_range.hs'. Output of ["git","diff","--no-index","--text","--exit-code","test/testdata/StylishHaskell.formatted_range.hs","/tmp/StylishHaskell.formatted_range2685-5.actual"]:
    diff --git a/test/testdata/StylishHaskell.formatted_range.hs b/tmp/StylishHaskell.formatted_range2685-5.actual
    old mode 100755
    new mode 100644

2 out of 2 tests failed (3.77s)
Test suite tests: FAIL
Test suite logged to: dist/test/hls-stylish-haskell-plugin-1.0.0.0-tests.log
0 of 1 test suites (0 of 1 test cases) passed.

It appears to be file permission differences. Perhaps the tests should ignore these differences?

Metadata

Metadata

Assignees

No one assigned

    Labels

    old_type: distributiontype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions