Sfoglia il codice sorgente

Merge pull request #1179 from mrjana/bugs

Fix flakiness in dnet_exec
Alessandro Boch 9 anni fa
parent
commit
ff78816769
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      libnetwork/test/integration/dnet/helpers.bash

+ 1 - 1
libnetwork/test/integration/dnet/helpers.bash

@@ -254,7 +254,7 @@ function dnet_cmd() {
 }
 }
 
 
 function dnet_exec() {
 function dnet_exec() {
-    docker exec -it ${1} bash -c "$2"
+    docker exec -it ${1} bash -c "trap \"echo SIGHUP\" SIGHUP; $2"
 }
 }
 
 
 function runc() {
 function runc() {