Pradipta Banerjee has uploaded a new change for review. Change subject: Add correct TUNSETIFF ioctl value for IBM Power (ppc64) in tcTests.py ......................................................................
Add correct TUNSETIFF ioctl value for IBM Power (ppc64) in tcTests.py The existing _TUNSETIFF value is specific for x86 arch. This patch adds the value for ppc64 arch Change-Id: I0a3831761aed81932466e29d88f5eb50bf5ce23d Signed-off-by: Pradipta Kr. Banerjee <[email protected]> --- M tests/tcTests.py 1 file changed, 6 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/02/10202/1 diff --git a/tests/tcTests.py b/tests/tcTests.py index 1983ea1..5f7da75 100644 --- a/tests/tcTests.py +++ b/tests/tcTests.py @@ -38,6 +38,7 @@ from nose.plugins.skip import SkipTest import tc +import platform EXT_IP = "/sbin/ip" @@ -88,8 +89,12 @@ class _Tap(_Interface): _IFF_TAP = 0x0002 - _TUNSETIFF = 0x400454ca _IFF_NO_PI = 0x1000 + arch = platform.machine() + if arch == 'x86_64': + _TUNSETIFF = 0x400454ca + elif arch == 'ppc64': + _TUNSETIFF = 0x800454ca _deviceListener = None -- To view, visit http://gerrit.ovirt.org/10202 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0a3831761aed81932466e29d88f5eb50bf5ce23d Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Pradipta Banerjee <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
