pktact.DirectPacketControllerQueue: skip test if the switch returns an error for the queue stats request on the controller port
diff --git a/tests/pktact.py b/tests/pktact.py
index 615b02a..dff4420 100644
--- a/tests/pktact.py
+++ b/tests/pktact.py
@@ -377,6 +377,9 @@
         request.queue_id = ofp.OFPQ_ALL
         (queue_stats, p) = self.controller.transact(request)
         self.assertNotEqual(queue_stats, None, "Queue stats request failed")
+        if queue_stats.header.type == ofp.OFPT_ERROR:
+            skip_message_emit(self, "Enqueue packet to controller")
+            return
 
         act = action.action_enqueue()