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

Ben Pfaff blp at nicira.com
Fri Feb 1 22:46:27 UTC 2013


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

diff --git a/tests/library.at b/tests/library.at
index d8280fd..3e84648 100644
--- a/tests/library.at
+++ b/tests/library.at
@@ -126,9 +126,10 @@ 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
 
 AT_SETUP([ovs_assert])
-- 
1.7.2.5




More information about the dev mailing list