test-container: Install with $(all-subdirs) [BZ #24794]

Message ID xny30nhu0z.fsf@greed.delorie.com
State Committed
Headers

Commit Message

DJ Delorie July 24, 2019, 11:50 p.m. UTC
  Tulio Magno Quites Machado Filho <tuliom@ascii.art.br> writes:
> I'll take a look and see what's missing.

How about this?  The initial setting of subdirs is from Makeconfig:

subdirs = $(sorted-subdirs)

With this change, tst-nss-files-hosts-long passes, where
it failed before with a clean testroot install.
  

Patch

diff --git a/Makefile b/Makefile
index 9fbf705200..ac1125853b 100644
--- a/Makefile
+++ b/Makefile
@@ -402,7 +402,7 @@  ifeq ($(run-built-tests),yes)
 	  done
 endif
 	$(MAKE) install DESTDIR=$(objpfx)testroot.pristine \
-	  subdirs='$(all-subdirs)'
+	  subdirs='$(sorted-subdirs)'
 	touch $(objpfx)testroot.pristine/install.stamp
 
 tests-special-notdir = $(patsubst $(objpfx)%, %, $(tests-special))