Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Process p = builder.start();
int ret = p.waitFor();
Process p = builder.start();
int ret = p.waitFor();
- System.out.println("(returned from command)");
+ System.out.println(String.format("(returned from command: %d)", ret));
* was an error
*/
public static boolean checkForLttngTools(Domain domain) {
* was an error
*/
public static boolean checkForLttngTools(Domain domain) {
+ System.out.println("Sanity check: start");
try (ILttngSession session = ILttngSession.createSession(null, domain)) {
boolean ret1 = session.enableAllEvents();
boolean ret2 = session.start();
try (ILttngSession session = ILttngSession.createSession(null, domain)) {
boolean ret1 = session.enableAllEvents();
boolean ret2 = session.start();
* "lttng view" also tests that Babeltrace is installed and working
*/
List<String> contents = session.view();
* "lttng view" also tests that Babeltrace is installed and working
*/
List<String> contents = session.view();
+ if (!contents.isEmpty()) {
+ System.out.print(String.join("\n", contents));
+ }
+ System.out.println("Sanity check: end");
return (ret1 && ret2 && ret3 && contents.isEmpty());
}
}
return (ret1 && ret2 && ret3 && contents.isEmpty());
}
}