]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: ensure factor tests can be regenerated
authorPádraig Brady <P@draigBrady.com>
Tue, 26 Nov 2013 13:37:50 +0000 (13:37 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 27 Nov 2013 01:28:20 +0000 (01:28 +0000)
* tests/local.mk (factor-tests:) Add -f to the mv command that
replaces any existing generated tests.  This is required to avoid
prompts when root initially generates the tests, and they subsequently
need to be regenerated by a non root user.

tests/local.mk

index 3c924255fef4db9aaa0465b2658bae9968579fe6..59bf07f01b8363477e868adf7c33c2e541e95311 100644 (file)
@@ -658,7 +658,7 @@ $(factor_tests): $(tf)/run.sh $(tf)/create-test.sh
        $(AM_V_at)$(SHELL) $(srcdir)/$(tf)/create-test.sh $@ \
          $(srcdir)/$(tf)/run.sh > $@-t
        $(AM_V_at)chmod a+x $@-t
-       $(AM_V_at)mv $@-t $@
+       $(AM_V_at)mv -f $@-t $@
 
 CLEANFILES += $(factor_tests)