Move debug logging statement for external metadata command so that it includes the dependency shell commands, if any.
Use the latest test results dictionary in the current install and test run if it contains only test_environment and missing_test_components entries.