From b1e2359f63d402c6d68eb8ba2eb03585f4cd32ef Mon Sep 17 00:00:00 2001 From: Pascal Welsch Date: Fri, 29 Sep 2023 13:50:23 +0200 Subject: [PATCH] Check for multiple locations of rm --- sidekick/test/init_test.dart | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sidekick/test/init_test.dart b/sidekick/test/init_test.dart index b1d20062..83771a1b 100644 --- a/sidekick/test/init_test.dart +++ b/sidekick/test/init_test.dart @@ -221,9 +221,16 @@ void main() { expect( stderrText, contains( - 'The CLI name rm is already taken by an executable on your system see [/bin/rm]', + 'The CLI name rm is already taken by an executable on your system', ), ); + expect( + stderrText, + anyOf([ + contains('[/usr/bin/rm]'), + contains('[/bin/rm]'), + ]), + ); expect( process.stdout, isNot(