diff mbox series

[v1,2/3] test: ipc pktio use /dev/shm instead of tmp

Message ID 1499716806-18707-3-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [v1,1/3] linux-gen: pktio: ipc fix packets free | expand

Commit Message

Github ODP bot July 10, 2017, 8 p.m. UTC
From: Maxim Uvarov <maxim.uvarov@linaro.org>


Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>

---
/** Email created from pull request 72 (muvarov:master_ipc_pkt_free_fix)
 ** https://github.com/Linaro/odp/pull/72
 ** Patch: https://github.com/Linaro/odp/pull/72.patch
 ** Base sha: 5a2ed3eefb1a263139282c376741adb2c355bd5a
 ** Merge commit sha: 5853863d527ef327a244740d931cd2d0fb05db5f
 **/
 test/linux-generic/pktio_ipc/pktio_ipc_run.sh | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
diff mbox series

Patch

diff --git a/test/linux-generic/pktio_ipc/pktio_ipc_run.sh b/test/linux-generic/pktio_ipc/pktio_ipc_run.sh
index 331ecdc9..c53de457 100755
--- a/test/linux-generic/pktio_ipc/pktio_ipc_run.sh
+++ b/test/linux-generic/pktio_ipc/pktio_ipc_run.sh
@@ -34,11 +34,11 @@  run()
 	(kill ${IPC_PID} 2>&1 > /dev/null ) > /dev/null
 	if [ $? -eq 0 ]; then
 		echo "pktio_ipc1${EXEEXT} was killed"
-		ls -l /tmp/odp* 2> /dev/null
-		rm -rf /tmp/odp-${IPC_PID}* 2>&1 > /dev/null
+		ls -l /dev/shm/${UID}/odp* 2> /dev/null
+		rm -rf /dev/shm/${UID}/odp-${IPC_PID}* 2>&1 > /dev/null
 	else
 		echo "normal exit of 2 application"
-		ls -l /tmp/odp* 2> /dev/null
+		ls -l /dev/shm/${UID}/odp* 2> /dev/null
 	fi
 
 	if [ $ret -ne 0 ]; then
@@ -60,20 +60,20 @@  run()
 	(kill ${IPC_PID} 2>&1 > /dev/null ) > /dev/null
 	if [ $? -eq 0 ]; then
 		echo "pktio_ipc2${EXEEXT} was killed"
-		ls -l /tmp/odp* 2> /dev/null
-		rm -rf /tmp/odp-${IPC_PID}* 2>&1 > /dev/null
+		ls -l /dev/shm/${UID}/odp* 2> /dev/null
+		rm -rf /dev/shm/${UID}/odp-${IPC_PID}* 2>&1 > /dev/null
 	else
 		echo "normal exit of 2 application"
-		ls -l /tmp/odp* 2> /dev/null
+		ls -l /dev/shm/${UID}/odp* 2> /dev/null
 	fi
 
 	if [ $ret -ne 0 ]; then
 		echo "!!! FAILED !!!"
-		ls -l /tmp/odp* 2> /dev/null
-		rm -rf /tmp/odp-${IPC_PID}* 2>&1 > /dev/null
+		ls -l /dev/shm/${UID}/odp* 2> /dev/null
+		rm -rf /dev/shm/${UID}/odp-${IPC_PID}* 2>&1 > /dev/null
 		exit $ret
 	else
-		ls -l /tmp/odp* 2> /dev/null
+		ls -l /dev/shm/${UID}/odp* 2> /dev/null
 		echo "Second stage PASSED"
 	fi