Skip to content

Commit 88e2f2b

Browse files
committed
net: Add $TST_NET_DATAROOT variable
Because $LTPROOT/testcases/bin/datafiles is used only by network tests, once all network tests are rewritten into new API, it should the location should be changed into some network specific path. Reviewed-by: Alexey Kodanev <[email protected]> Signed-off-by: Petr Vorel <[email protected]>
1 parent ee7dad5 commit 88e2f2b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

testcases/lib/tst_net.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -888,6 +888,8 @@ if [ -z "$_tst_net_parse_variables" ]; then
888888
export _tst_net_parse_variables="yes"
889889
fi
890890

891+
export TST_NET_DATAROOT="$LTPROOT/testcases/bin/datafiles"
892+
891893
export TST_NETLOAD_CLN_REQUESTS="${TST_NETLOAD_CLN_REQUESTS:-10000}"
892894
export TST_NETLOAD_CLN_NUMBER="${TST_NETLOAD_CLN_NUMBER:-2}"
893895
export TST_NETLOAD_BINDTODEVICE="${TST_NETLOAD_BINDTODEVICE-1}"

testcases/lib/tst_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ tst_run()
506506
NEEDS_DRIVERS|FS_TYPE|MNTPOINT|MNT_PARAMS);;
507507
IPV6|IPVER|TEST_DATA|TEST_DATA_IFS);;
508508
RETRY_FUNC|RETRY_FN_EXP_BACKOFF|TIMEOUT);;
509-
NET_MAX_PKT);;
509+
NET_DATAROOT|NET_MAX_PKT);;
510510
*) tst_res TWARN "Reserved variable TST_$_tst_i used!";;
511511
esac
512512
done

0 commit comments

Comments
 (0)