check_tls_traces println add_virtual_changer check_events check_events_json
create_many_hardlinks check_dot_status parse_fuse_trace generate_random_seek
check_storage_selection check_json get_perm check_protect
- get_running_jobs
+ get_running_jobs get_client_name
);
print "$count\n";
}
+sub get_client_name
+{
+ my $line = `$bin/bdirjson -r client -l Name -D`;
+ my $test_json;
+ eval 'use JSON qw/decode_json/; $test_json = JSON->new;';
+ if ($@) {
+ print "ERROR: json test skipped\n";
+ return;
+ }
+ my $r = $test_json->decode($line);
+ print "$r->[0]->{Name}\n";
+}
+
1;