ソースを参照

Put a timeout on the Python test.

Don Porter 5 年 前
コミット
d95c4f9da6
2 ファイル変更10 行追加8 行削除
  1. 5 4
      Jenkinsfiles/Linux
  2. 5 4
      Jenkinsfiles/Linux-Debug

+ 5 - 4
Jenkinsfiles/Linux

@@ -25,10 +25,12 @@ pipeline {
                             make
                             ./syscalls.sh
                             '''
-                        sh '''
-                            cd LibOS/shim/test/apps/python
-                            make regression
+                        timeout(time: 5, unit: 'MINUTES') {
+                            sh '''
+                                cd LibOS/shim/test/apps/python
+                                make regression
                             '''
+                        }
                         sh '''
                             cd LibOS/shim/test/apps/bash
                             make regression
@@ -79,4 +81,3 @@ pipeline {
                 }
         }
 }
-

+ 5 - 4
Jenkinsfiles/Linux-Debug

@@ -25,10 +25,12 @@ pipeline {
                             make
                             ./syscalls.sh
                             '''
-                        sh '''
-                            cd LibOS/shim/test/apps/python
-                            make regression
+                        timeout(time: 5, unit: 'MINUTES') {
+                            sh '''
+                                cd LibOS/shim/test/apps/python
+                                make regression
                             '''
+                        }
                         sh '''
                             cd LibOS/shim/test/apps/bash
                             make regression
@@ -72,4 +74,3 @@ pipeline {
                 }
         }
 }
-