Skip to content

Commit d0facd0

Browse files
authored
cleanup: fix lustre quickstart (#15230)
* cleanup: fix lustre quickstart * remove arg
1 parent 33e230c commit d0facd0

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

google/cloud/lustre/CMakeLists.txt

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,8 @@ if (BUILD_TESTING AND GOOGLE_CLOUD_CPP_ENABLE_CXX_EXCEPTIONS)
2525
google_cloud_cpp_add_common_options(lustre_quickstart)
2626
add_test(
2727
NAME lustre_quickstart
28-
COMMAND
29-
cmake -P "${PROJECT_SOURCE_DIR}/cmake/quickstart-runner.cmake"
30-
$<TARGET_FILE:lustre_quickstart> GOOGLE_CLOUD_PROJECT
31-
GOOGLE_CLOUD_CPP_TEST_ZONE)
32-
set_tests_properties(
33-
lustre_quickstart
34-
PROPERTIES LABELS "integration-test;quickstart" PASS_REGULAR_EXPRESSION
35-
"last message of Read access to project")
28+
COMMAND cmake -P "${PROJECT_SOURCE_DIR}/cmake/quickstart-runner.cmake"
29+
$<TARGET_FILE:lustre_quickstart> GOOGLE_CLOUD_PROJECT)
30+
set_tests_properties(lustre_quickstart
31+
PROPERTIES LABELS "integration-test;quickstart")
3632
endif ()

google/cloud/lustre/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ this library.
2323
#include <iostream>
2424

2525
int main(int argc, char* argv[]) try {
26-
if (argc != 3) {
27-
std::cerr << "Usage: " << argv[0] << " project-id location-id\n";
26+
if (argc != 2) {
27+
std::cerr << "Usage: " << argv[0] << " project-id\n";
2828
return 1;
2929
}
3030

31-
auto const location = google::cloud::Location(argv[1], argv[2]);
31+
auto const location = google::cloud::Location(argv[1], "-");
3232

3333
namespace lustre = ::google::cloud::lustre_v1;
3434
auto client = lustre::LustreClient(lustre::MakeLustreConnection());

google/cloud/lustre/quickstart/quickstart.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
#include <iostream>
1919

2020
int main(int argc, char* argv[]) try {
21-
if (argc != 3) {
22-
std::cerr << "Usage: " << argv[0] << " project-id location-id\n";
21+
if (argc != 2) {
22+
std::cerr << "Usage: " << argv[0] << " project-id\n";
2323
return 1;
2424
}
2525

26-
auto const location = google::cloud::Location(argv[1], argv[2]);
26+
auto const location = google::cloud::Location(argv[1], "-");
2727

2828
namespace lustre = ::google::cloud::lustre_v1;
2929
auto client = lustre::LustreClient(lustre::MakeLustreConnection());

0 commit comments

Comments
 (0)