mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: unit: print nvtest info for whole test
The nvtest output required to run as part of the nvgpu_submit framework was being printed per unit test. However, when we run each test in a thread with -j, the nvtest output was mixed among the tests as they finished and the results were not consistent. This patch changes the unit test framework to only output the nvtest start/pass/fail messages for the entire unit test framework run so that the output is consistent. This will allow enabling of threaded runs in GVS. For the NVTEST output, we want to use the binary name, so save that from argv[0] to use later. JIRA NVGPU-1042 Change-Id: I71697e75d4a0bba8c5aa2425bc25de57322826d7 Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1924616 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
9bf47eff8a
commit
78eca5bdc3
@@ -102,6 +102,15 @@ int core_parse_args(struct unit_fw *fw, int argc, char **argv)
|
||||
memset(args, 0, sizeof(*args));
|
||||
set_arg_defaults(args);
|
||||
|
||||
args->binary_name = strrchr(argv[0], '/');
|
||||
if (args->binary_name == NULL) {
|
||||
/* no slash, so use the whole name */
|
||||
args->binary_name = argv[0];
|
||||
} else {
|
||||
/* move past the slash */
|
||||
args->binary_name++;
|
||||
}
|
||||
|
||||
fw->args = args;
|
||||
|
||||
while (1) {
|
||||
|
||||
Reference in New Issue
Block a user