Skip to content
Snippets Groups Projects
Commit b4e8db24 authored by Nicolas "Pixel" Noble's avatar Nicolas "Pixel" Noble
Browse files

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

parent a643960d
No related branches found
No related tags found
No related merge requests found
......@@ -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--;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment