Skip to content

Commit

Permalink
Update generate_resource_spec test to new output format
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmaynard committed Feb 21, 2023
1 parent f6cca87 commit 82997a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/test/generate_resource_spec-no-gpus.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ if(NOT EXISTS "${CMAKE_CURRENT_BINARY_DIR}/spec.json")
endif()

file(READ "${CMAKE_CURRENT_BINARY_DIR}/spec.json" content)
if(NOT content MATCHES [=[.*{"id":"0", "slots": 0}.*]=])
if(NOT content MATCHES [=[.*{"id": "0", "slots": 0}.*]=])
message(FATAL_ERROR "rapids_test_generate_resource_spec incorrectly detected a GPU")
endif()

0 comments on commit 82997a9

Please sign in to comment.