[ovs-dev] [PATCH 2/3] tests: Make long name more readable by introducing a shell variable.

Ben Pfaff blp at nicira.com
Wed Jan 16 17:28:13 UTC 2013


Signed-off-by: Ben Pfaff <blp at nicira.com>
---
 tests/library.at |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/tests/library.at b/tests/library.at
index 3334d23..4afd913 100644
--- a/tests/library.at
+++ b/tests/library.at
@@ -126,7 +126,8 @@ dnl for other platforms, so we skip the test there.
 AT_SETUP([test unix socket -- long pathname])
 AT_SKIP_IF([test ! -d /proc/self/fd])
 dnl Linux has a 108 byte limit; this is 150 bytes long.
-mkdir 012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
-cd 012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
-AT_CHECK([test-unix-socket ../012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/socket socket])
+longname=012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
+mkdir $longname
+cd $longname
+AT_CHECK([test-unix-socket ../$longname/socket socket])
 AT_CLEANUP
-- 
1.7.10.4




More information about the dev mailing list