Skip to content

Commit

Permalink
test/hwloc: verify by_rank.0.HostName
Browse files Browse the repository at this point in the history
Add a simple check that resource.hwloc.by_rank.0.HostName
is populated in the KVS and matches the actual hostname.
  • Loading branch information
garlick committed Nov 3, 2016
1 parent 4a28f45 commit b096018
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions t/t2005-hwloc-basic.t
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,10 @@ test_expect_success 'hwloc: reload fails on invalid rank' '
grep "No route to host" stderr
'

test_expect_success 'hwloc: HostName is populated in by_rank' '
HW_HOST=$(flux kvs get resource.hwloc.by_rank.0.HostName) &&
REAL_HOST=$(hostname) &&
test x"$HW_HOST" = x"$REAL_HOST"
'

test_done

0 comments on commit b096018

Please sign in to comment.