Skip to content

Commit

Permalink
ltpapicmd: tst_get_unused_port: Do not require envs
Browse files Browse the repository at this point in the history
Do not require existing TST_* env variables for tst_get_unused_port just
like we do for the tst_kvercmp.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
  • Loading branch information
metan-ucw committed Apr 2, 2014
1 parent 9c18ca2 commit f1334bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/apicmds/ltpapicmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,9 @@ int main(int argc, char *argv[])
tst_total = getenv("TST_TOTAL");
tst_cntstr = getenv("TST_COUNT");
if (TCID == NULL || tst_total == NULL || tst_cntstr == NULL) {
if ((strcmp(cmd_name, "tst_kvercmp") != 0)
&& (strcmp(cmd_name, "tst_kvercmp2") != 0)) {
if (!strcmp(cmd_name, "tst_kvercmp") &&
!strcmp(cmd_name, "tst_kvercmp2") &&
!strcmp(cmd_name, "tst_get_unused_port")) {
fprintf(stderr,
"\nSet variables TCID, TST_TOTAL, and TST_COUNT before each test:\n"
"export TCID=<test name>\n"
Expand Down

0 comments on commit f1334bb

Please sign in to comment.