Adding an argument to bad_ssl_cert in order to override the location of the test certificate.

This commit is contained in:
Nicolas "Pixel" Noble 2016-03-19 00:28:08 +01:00
parent a643960d45
commit b4e8db24c8
1 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,7 @@
#include <grpc/support/log.h>
#include <grpc/support/string_util.h>
#include <grpc/support/subprocess.h>
#include "src/core/support/env.h"
#include "src/core/support/string.h"
#include "test/core/util/port.h"
#include "test/core/end2end/cq_verifier.h"
@ -144,6 +145,9 @@ int main(int argc, char **argv) {
} else {
strcpy(root, ".");
}
if (argc == 2) {
gpr_setenv("GRPC_DEFAULT_SSL_ROOTS_FILE_PATH", argv[1]);
}
/* figure out our test name */
tmp = lunder - 1;
while (*tmp != '_') tmp--;