Skip to content
Snippets Groups Projects
Commit 518b9b38 authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Adjust tests for monitoring Cabal files to cover more cases

Without this change, Edward's original patch to monitor the contents of
Cabal files wouldn't actually be needed to make the test pass.

Originally the test only covered the case of specifying a package by a
glob that matches a .cabal file, and that case already worked because
the glob matching already included a monitor on the glob matches (ie
the .cabal file). What did not work was a glob that matched a
directory, since in that case we did the the glob match for
$thedir/*.cabal incorrectly, meaning that we didn't end up monitoring
the files properly (a path mismatch meant we were monitoring different
files).
parent ed1cc2fe
No related merge requests found
packages: p/p.cabal q/q.cabal
packages: p/p.cabal q/
-- use both matching a .cabal file, and a dir
-- since these are slightly different code paths
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment