Navigation Menu

Skip to content

Commit

Permalink
libpcp, qa: fix regression in 766, 776 re webapi discovery
Browse files Browse the repository at this point in the history
Resolve failures in discovery tests due to incorrect string
interpolation in libpcp.
  • Loading branch information
natoscott committed Jun 28, 2019
1 parent ea81f5f commit 8abd93d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions qa/766
Expand Up @@ -26,9 +26,9 @@ _sought_filter()
# output for the --all invocations
sed \
-e 's/No \(pmproxy servers\) discovered/Sought \1/g' \
-e 's/No \(pmwebd servers\) discovered/Sought \1/g' \
-e 's/No \(pmwebapi servers\) discovered/Sought \1/g' \
-e 's/Discovered \(pmproxy servers\):/Sought \1/g' \
-e 's/Discovered \(pmwebd servers\):/Sought \1/g' \
-e 's/Discovered \(pmwebapi servers\):/Sought \1/g' \
# end
}

Expand Down
4 changes: 2 additions & 2 deletions qa/776
Expand Up @@ -29,9 +29,9 @@ _sought_filter()
# output for the --all invocations
sed \
-e 's/No \(pmproxy servers\) discovered/Sought \1/g' \
-e 's/No \(pmwebd servers\) discovered/Sought \1/g' \
-e 's/No \(pmwebapi servers\) discovered/Sought \1/g' \
-e 's/Discovered \(pmproxy servers\):/Sought \1/g' \
-e 's/Discovered \(pmwebd servers\):/Sought \1/g' \
-e 's/Discovered \(pmwebapi servers\):/Sought \1/g' \
# end
}

Expand Down
2 changes: 1 addition & 1 deletion src/libpcp/src/auxserver.c
Expand Up @@ -186,7 +186,7 @@ __pmWebAPIAddPorts(int **ports, int nports)
* error.
*/
if (new_nports <= nports)
new_nports = __pmAddPorts(TO_STRING(PMWEBAPI_PORT), ports, nports);
new_nports = __pmAddPorts(TO_STRING(WEBAPI_PORT), ports, nports);

return new_nports;
}
Expand Down

0 comments on commit 8abd93d

Please sign in to comment.