CORD-1939: Modify test_cli to set current working directory

Change-Id: I5ac6718834f65896df9d5c9ed13f33667f5c1a24
(cherry picked from commit 47946aeec44fab510d0e53c73d30f85b559c89f2)
diff --git a/lib/xos-genx/xos-genx-tests/test_cli.py b/lib/xos-genx/xos-genx-tests/test_cli.py
index 29098f1..e6de65c 100644
--- a/lib/xos-genx/xos-genx-tests/test_cli.py
+++ b/lib/xos-genx/xos-genx-tests/test_cli.py
@@ -27,14 +27,17 @@
     Testing the CLI binding for the XOS Generative Toolchain
     """
 
+    def setUp(self):
+        os.chdir(os.path.join(os.path.abspath(os.path.dirname(os.path.realpath(__file__))), "..")) 
+
     def test_generator(self):
         """
         [XOS-GenX] The CLI entry point should correctly parse params
         """
         args = Args()
-        args.files = ['lib/xos-genx/xos-genx-tests/xproto/test.xproto']
-        args.target = 'lib/xos-genx/xos-genx-tests/xtarget/test.xtarget'
-        args.output = 'lib/xos-genx/xos-genx-tests/out/dir/'
+        args.files = ['xos-genx-tests/xproto/test.xproto']
+        args.target = 'xos-genx-tests/xtarget/test.xtarget'
+        args.output = 'xos-genx-tests/out/dir/'
         args.write_to_file = "target"
         args.dest_file = None
         args.dest_extension = None