tests: don't rely on strerror text when testing rmdir failure
[gitweb.git] / t / t7001-mv.sh
index e3c8c2c1b8817acd85866470c6f76c4a4f8d17d7..e3290aafe7c244f6258c7925ad4a051b24aa8e2e 100755 (executable)
@@ -446,8 +446,7 @@ test_expect_success 'checking out a commit before submodule moved needs manual u
        git mv sub sub2 &&
        git commit -m "moved sub to sub2" &&
        git checkout -q HEAD^ 2>actual &&
-       echo "warning: unable to rmdir sub2: Directory not empty" >expected &&
-       test_i18ncmp expected actual &&
+       test_i18ngrep "^warning: unable to rmdir sub2:" actual &&
        git status -s sub2 >actual &&
        echo "?? sub2/" >expected &&
        test_cmp expected actual &&