Skip to content

Commit fe5e782

Browse files
committed
add print to argument lists
1 parent 88a335f commit fe5e782

6 files changed

Lines changed: 2 additions & 18 deletions

File tree

documents/FAQ.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ Here is an example launch.json file to run the pubsub sample
9999
"program": "${workspaceFolder}/samples/pub_sub/basic_pub_sub/build/basic-pub-sub",
100100
"args": [
101101
"--endpoint", "<account-number>-ats.iot.<region>.amazonaws.com",
102-
"--ca_file", "<path to root-CA>",
103102
"--cert", "<path to cert>",
104103
"--key", "<path to key>",
105104
"--client-id", "test-client"
@@ -116,7 +115,6 @@ Here is an example launch.json file to run the pubsub sample
116115
* Root CA Certificates
117116
* Download the root CA certificate file that corresponds to the type of data endpoint and cipher suite you're using (You most likely want Amazon Root CA 1)
118117
* Generated and provided by Amazon. You can download it [here](https://www.amazontrust.com/repository/) or download it when getting the other certificates from the AWS console
119-
* When using samples it can look like this: `--ca_file root-CA.crt`
120118
* Device certificate
121119
* Intermediate device certificate that is used to generate the key below
122120
* When using samples it can look like this: `--cert abcde12345-certificate.pem.crt`

servicetests/tests/FleetProvisioning/main.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,6 @@ void printHelp()
538538
printf(" --template_parameters Template parameters JSON\n");
539539
printf("optional arguments:\n");
540540
printf(" --client_id Client ID (default: test-<uuid>)\n");
541-
printf(" --ca_file Path to optional CA bundle (PEM)\n");
542541
printf(" --csr Path to CSR in PEM format\n");
543542
printf(" --port Port override\n");
544543
printf(" --mqtt_version MQTT version (3 or 5, default: 5)\n");
@@ -580,10 +579,6 @@ CmdArgs parseArgs(int argc, char *argv[])
580579
{
581580
args.clientId = argv[++i];
582581
}
583-
else if (strcmp(argv[i], "--ca_file") == 0)
584-
{
585-
args.caFile = argv[++i];
586-
}
587582
else if (strcmp(argv[i], "--csr") == 0)
588583
{
589584
args.csrPath = argv[++i];

servicetests/tests/JobsExecution/main.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ void printHelp()
198198
printf(" --thing_name Thing name\n");
199199
printf("optional arguments:\n");
200200
printf(" --client_id Client ID (default: test-<uuid>)\n");
201-
printf(" --ca_file Path to optional CA bundle (PEM)\n");
202201
printf(" --port Port override\n");
203202
printf(" --mqtt_version MQTT version (3 or 5, default: 5)\n");
204203
}
@@ -235,10 +234,6 @@ CmdArgs parseArgs(int argc, char *argv[])
235234
{
236235
args.clientId = argv[++i];
237236
}
238-
else if (strcmp(argv[i], "--ca_file") == 0)
239-
{
240-
args.caFile = argv[++i];
241-
}
242237
else if (strcmp(argv[i], "--port") == 0)
243238
{
244239
args.port = atoi(argv[++i]);

servicetests/tests/ShadowUpdate/main.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@ void printHelp()
230230
printf(" --thing_name Thing name\n");
231231
printf("optional arguments:\n");
232232
printf(" --client_id Client ID (default: test-<uuid>)\n");
233-
printf(" --ca_file Path to optional CA bundle (PEM)\n");
234233
printf(" --shadow_property Shadow property name (default: color)\n");
235234
printf(" --shadow_name Shadow name\n");
236235
printf(" --shadow_value Shadow value\n");
@@ -270,10 +269,6 @@ CmdArgs parseArgs(int argc, char *argv[])
270269
{
271270
args.clientId = argv[++i];
272271
}
273-
else if (strcmp(argv[i], "--ca_file") == 0)
274-
{
275-
args.caFile = argv[++i];
276-
}
277272
else if (strcmp(argv[i], "--shadow_property") == 0)
278273
{
279274
args.shadowProperty = argv[++i];

utils/appverifier_launch_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def launchSample(sample_file, sample_region, sample_secret_endpoint, sample_secr
5252
for arg in sample_arguments_split:
5353
launch_arguments.append(arg)
5454

55-
print("Running sample...")
55+
print(f"Running sample... {launch_arguments}")
5656
exit_code = 0
5757
sample_return = subprocess.run(
5858
args=launch_arguments, executable=sample_file)

utils/run_in_ci.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ def launch_runnable(runnable_dir):
323323
# C++
324324
elif (config_json['language'] == "CPP"):
325325
runnable_file = os.path.join(runnable_dir, config_json['runnable_file'])
326+
print(f"launch runnable with arguments: {config_json_arguments_list}")
326327
runnable_return = subprocess.run(args=config_json_arguments_list, input=subprocess_stdin, timeout=runnable_timeout, executable=runnable_file)
327328
exit_code = runnable_return.returncode
328329

0 commit comments

Comments
 (0)