From 2c61c6676f5411405771f7afd4e5dce1342e094d Mon Sep 17 00:00:00 2001 From: Xabier Napal Date: Thu, 8 Jul 2021 22:22:19 +0200 Subject: [PATCH] test: update git ls-files assertions (#1647) Signed-off-by: Xabier Napal --- test/TestUtils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/TestUtils.py b/test/TestUtils.py index 094421a93e..e519b1c7da 100644 --- a/test/TestUtils.py +++ b/test/TestUtils.py @@ -354,7 +354,11 @@ def test_cli_auto_detect(capfd: CaptureFixture[str]) -> None: out, err = capfd.readouterr() # Confirmation that it runs in auto-detect mode - assert "Discovered files to lint using: git ls-files -z" in err + assert ( + "Discovered files to lint using: git ls-files --cached --others --exclude-standard -z" + in err + ) + assert "Excluded removed files using: git ls-files --deleted -z" in err # An expected rule match from our examples assert ( "examples/playbooks/empty_playbook.yml:1: "