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

pull/5847/head
Nicolas "Pixel" Noble 9 years ago
parent a643960d45
commit b4e8db24c8
  1. 4
      test/core/bad_ssl/bad_ssl_test.c

@ -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--;

Loading…
Cancel
Save