Revision: 3165
Author: jussi.ao.malinen
Date: Wed May 5 01:08:52 2010
Log: fixed unit tests on mac
http://code.google.com/p/robotframework/source/detail?r=3165
Modified:
/trunk/utest/utils/test_misc.py
=======================================
--- /trunk/utest/utils/test_misc.py Thu Mar 4 05:46:48 2010
+++ /trunk/utest/utils/test_misc.py Wed May 5 01:08:52 2010
@@ -1,5 +1,6 @@
import os
import unittest
+import sys
from robot.utils.asserts import assert_equals
from robot import utils
@@ -37,7 +38,7 @@
( '/path/to', '/path/to/dir/result_in_sub_dir.html', 'dir/result_in_sub_dir.html'
),
( '/commonprefix/sucks/baR', '/commonprefix/sucks/baZ.txt', '../baZ.txt' ),
( '/a/very/long/path', '/no/depth/limitation', '../../../../no/depth/limitation'
),
-
( '/etc/fstab', '/path/to/existing/file', '../path/to/existing/file' ),
+
( '/etc/hosts', '/path/to/existing/file', '../path/to/existing/file' ),
( '/path/to/identity', '/path/to/identity', 'identity' ),
]
else:
@@ -63,6 +64,8 @@
]
for basedir, target, expected in inputs:
+ if sys.platform == 'darwin':
+ expected = expected.lower()
assert_equals(get_link_path(target,
basedir).replace('R:', 'r:'), expected,
'%s -> %s' % (target, basedir))