diff --git a/tools/rosbash/test/example.launch b/tools/rosbash/test/example.launch new file mode 100644 index 00000000..1ce058e6 --- /dev/null +++ b/tools/rosbash/test/example.launch @@ -0,0 +1,3 @@ + + + diff --git a/tools/rosbash/test/test_scripts.py b/tools/rosbash/test/test_scripts.py index 6d6ea2c8..c20a6923 100644 --- a/tools/rosbash/test/test_scripts.py +++ b/tools/rosbash/test/test_scripts.py @@ -47,12 +47,13 @@ class TestWithFiles(unittest.TestCase): subprocess.check_call("touch foo.launch", shell=True, cwd=self.test_root_path) subprocess.check_call("touch bar.launch", shell=True, cwd=self.test_root_path) - cmd = make_bash_pre_command(['roslaunch', 'roslaunch'], 2) - cmd += "_roscomplete_launch roslaunch roslaunch; echo $COMPREPLY'" + cmd = make_bash_pre_command(['rosbash', 'rosbash'], 2) + cmd += "_roscomplete_launch rosbash rosbash; echo $COMPREPLY'" p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, cwd=self.test_root_path) output = p.communicate() self.assertEqual(0, p.returncode, (p.returncode, output, cmd)) - self.assertEqual('example.launch\n', output[0], (p.returncode, output[0], cmd)) + + self.assertTrue('example.launch' in output[0], (p.returncode, output[0], cmd))