Index: tests/test.py
===================================================================
--- tests/test.py	(revision 080b0a1b9ea6f8e025d73f5d4a94ea745e9646f8)
+++ tests/test.py	(revision ad4832f1e82f11b7d41be2a374faf227d42690a9)
@@ -99,10 +99,12 @@
 
 					# print a warning if it users didn't ask for a specific architecture
-					if not options.arch:
+					found_arch = [f.arch for f in found if f.arch]
+					if found_arch and not options.arch:
 						print('WARNING: "%s", test has architecture specific expected files but --arch was not specified, regenerating only for current host' % testname, file=sys.stderr)
 
 
 					# print a warning if it users didn't ask for a specific ast version
-					if not options.ast:
+					found_astv = [f.astv for f in found if f.astv]
+					if found_astv and not options.ast:
 						print('WARNING: "%s", test has ast version specific expected files but --ast was not specified, regenerating only for current ast' % testname, file=sys.stderr)
 
