Atest smoke testing: build module_info.json at first.

Rebuild module_info.json at the beginning of all tests.

Bug: Bug: 149444171
Test: source build/envsetup.sh; lunch
      prebuilts/asuite/atest/smoke_tests
Change-Id: I90643216bb626ee1991c495782a8d1dffd8d122b
diff --git a/atest/smoke_tests b/atest/smoke_tests
index bbb34f4..e97b8b4 100755
--- a/atest/smoke_tests
+++ b/atest/smoke_tests
@@ -29,6 +29,7 @@
     os.getenv(utils.TOP), 'prebuilts/asuite', ATEST, OS_TYPE, ATEST)
 # Append more tests in the ordered list below, and provide a main() so that
 # smoke_tests can invoke them directly.
+# TODO: b/153411501 support --enable-file-patterns in the future.
 TESTS = ['lookup_tests']
 
 
@@ -43,6 +44,8 @@
         print('Warning: currently using: {}'.format(shutil.which(ATEST)))
         sys.exit(1)
 
+    # Rebuild module_info.json at the beginning.
+    os.system('atest -mc --dry-run hello_world_test')
     sys.path.append(utils.SMOKE_DIR)
     _modules = {}
     for test in TESTS: