Project

General

Profile

Actions

Bug #52695

closed

Missing hostname package causes unittest_config and unittest_hostname to fail

Added by Brad Hubbard over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
common
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

In src/test/common/test_hostname.cc we require the 'hostname' binary to be available or we will fail.

[ RUN      ] Hostname.full
sh: hostname: command not found
../src/test/common/test_hostname.cc:53: Failure
Expected equality of these values:
  hn
    Which is: "08910a73149a" 
  exec("hostname")
    Which is: "" 
[  FAILED  ] Hostname.full (3 ms)
[ RUN      ] Hostname.short
sh: hostname: command not found
../src/test/common/test_hostname.cc:68: Failure
Expected equality of these values:
  shn
    Which is: "08910a73149a" 
  exec("hostname -s")
    Which is: "" 

So the hostname package should be a dependency.

Actions #1

Updated by Brad Hubbard over 2 years ago

  • Status changed from New to Fix Under Review
Actions #2

Updated by Brad Hubbard over 2 years ago

  • Pull request ID set to 43291
Actions #3

Updated by Brad Hubbard over 2 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF