core: skip results checking when introspecting the command line

This commit is contained in:
Tommaso Pecorella
2022-01-26 11:09:13 -03:00
committed by Gabriel Ferreira
parent bf0708e61f
commit e1e07f2ffd
2 changed files with 10 additions and 5 deletions

View File

@@ -1998,7 +1998,4 @@ def main(argv):
return run_tests()
if __name__ == '__main__':
returncode = main(sys.argv)
if os.getenv("NS_COMMANDLINE_INTROSPECTION", None) is not None:
returncode = 0
sys.exit(returncode)
sys.exit(main(sys.argv))