X-Git-Url: https://code.grnet.gr/git/ganeti-local/blobdiff_plain/2d76b5806fb4fc4a3b22e2035a7ea2c5a2f9d245..c6ccba7e76c1ad30d90834eb8874b1507d06763b:/test/import-export_unittest-helper?ds=sidebyside diff --git a/test/import-export_unittest-helper b/test/import-export_unittest-helper index 3968e1f..58cc65e 100755 --- a/test/import-export_unittest-helper +++ b/test/import-export_unittest-helper @@ -33,6 +33,7 @@ from ganeti import serializer RETRY_INTERVAL = 0.1 TIMEOUT = int(os.getenv("TIMEOUT", 10)) +VALIDITY = int(os.getenv("VALIDITY", 1)) def _GetImportExportData(filename): @@ -68,7 +69,7 @@ def main(): elif what == "connected": WaitForConnected(filename) elif what == "gencert": - utils.GenerateSelfSignedSslCert(filename, validity=1) + utils.GenerateSelfSignedSslCert(filename, validity=VALIDITY) else: raise Exception("Unknown command '%s'" % what)