Using dout instead of cout creates noise and makes it more difficult for
people trying to debug a failure in test_ceph_argparse.py.
The output of get_command_descriptions is modified to only contain
parseable information and the code parsing its output
test_ceph_argparse.py is removed.
Signed-off-by: Loic Dachary <loic@dachary.org>
#include "mon/Monitor.h"
#include "common/ceph_argparse.h"
#include "global/global_init.h"
-#include "common/debug.h"
-
-#define dout_subsys ceph_subsys_mon
static void usage(ostream &out)
{
get_command_descriptions(mon_commands, size, f, &rdata);
delete f;
string data(rdata.c_str(), rdata.length());
- dout(0) << data << dendl;
+ cout << data << std::endl;
}
static void all()
import json
def get_command_descriptions(what):
- buffer = os.popen("./get_command_descriptions " + "--" + what
- + " 2>&1 | grep cmd000").read()
- return re.sub(r'^.*?(\{.*\})', '\g<1>', buffer)
+ return os.popen("./get_command_descriptions " + "--" + what).read()
def test_parse_json_funcsigs():
commands = get_command_descriptions("all")