File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ - name : Install prerequisites and run e2e node tests
2
+ hosts :
3
+ - masters
4
+ roles :
5
+ - k8s-ut
Original file line number Diff line number Diff line change
1
+ - name : Install prereq packages
2
+ yum :
3
+ name : " {{ packages }}"
4
+ state : present
5
+ vars :
6
+ packages :
7
+ - git
8
+ - make
9
+ - gcc
10
+
11
+ - name : Create a shell script
12
+ copy :
13
+ content : |
14
+ #!/bin/bash
15
+ set -o errexit
16
+
17
+ echo 'This is a script to run k8s UT tests'
18
+ useradd nonroot
19
+ su - nonroot <<EOF
20
+ set -o errexit
21
+
22
+ git clone https://github.com/kubernetes/kubernetes
23
+ pushd kubernetes
24
+ export CGO_ENABLED=1
25
+ export KUBE_TIMEOUT='--timeout=600s'
26
+ export KUBE_KEEP_VERBOSE_TEST_OUTPUT=y
27
+ export LOG_LEVEL=4
28
+ export ARTIFACTS=~/artifacts
29
+ make test KUBE_RACE=-race
30
+ popd
31
+ EOF
32
+ dest : /make-test.sh
33
+ mode : ' 0755'
You can’t perform that action at this time.
0 commit comments