From 397492a5c6d3bf851eb1689af32af03df7790eb8 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Tue, 16 Apr 2019 16:06:52 +0100 Subject: [PATCH] JAL-3130 JAL-1889 reportCurrentWorkingDirectory test to report absolute path when running command line tests --- test/jalview/bin/CommandLineOperations.java | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/test/jalview/bin/CommandLineOperations.java b/test/jalview/bin/CommandLineOperations.java index c340927..cb08563 100644 --- a/test/jalview/bin/CommandLineOperations.java +++ b/test/jalview/bin/CommandLineOperations.java @@ -195,17 +195,22 @@ public class CommandLineOperations } return worker; } - @Test(alwaysRun=true) + + @Test(groups = { "Functional" }) public void reportCurrentWorkingDirectory() { - try { - Path currentRelativePath = Paths.get(""); - String s = currentRelativePath.toAbsolutePath().toString(); - System.out.println("Test CWD is "+s); - } catch (Exception q) { - q.printStackTrace(); - } + try + { + Path currentRelativePath = Paths.get(""); + String s = currentRelativePath.toAbsolutePath().toString(); + System.out.println("Test CWD is " + s); + System.err.println("Test CWD is " + s); + } catch (Exception q) + { + q.printStackTrace(); + } } + @BeforeTest(alwaysRun = true) public void initialize() { -- 1.7.10.2