@@ -12,21 +12,21 @@ Get must-gather Logs
12
12
${output } = Run process tests/Resources/CLI/MustGather/get-must-gather-logs.sh shell=yes
13
13
Should Be Equal As Integers ${output.rc } 0
14
14
Should Not Contain ${output.stdout } FAIL
15
- ${must-gather-dir } = Run ls -d must-gather.local.*
16
- ${namespaces-log-dir } = Run ls -d ${must-gather-dir } /quay-io-modh-must-gather-sha256-*/namespaces
17
- Set Suite Variable ${must-gather-dir }
18
- Set Suite Variable ${namespaces-log-dir }
19
- Directory Should Exist ${must-gather-dir }
20
- Directory Should Not Be Empty ${must-gather-dir }
15
+ ${must_gather_dir } = Run ls -d must-gather.local.*
16
+ ${namespaces_log_dir } = Run ls -d ${must_gather_dir } /quay-io-modh-must-gather-sha256-*/namespaces
17
+ Set Suite Variable ${must_gather_dir }
18
+ Set Suite Variable ${namespaces_log_dir }
19
+ Directory Should Exist ${must_gather_dir }
20
+ Directory Should Not Be Empty ${must_gather_dir }
21
21
22
22
Verify Logs For ${namespace}
23
23
[Documentation] Verifies the must-gather logs related to a namespace
24
- Directory Should Exist ${namespaces-log-dir } /${namespace }
25
- Directory Should Not Be Empty ${namespaces-log-dir } /${namespace }
26
- Directory Should Not Be Empty ${namespaces-log-dir } /${namespace } /pods
27
- ${log-files } = Run find ${namespaces-log-dir } /${namespace } /pods -type f -name "*.log"
28
- Should Not Be Equal ${log-files } ${EMPTY }
24
+ Directory Should Exist ${namespaces_log_dir } /${namespace }
25
+ Directory Should Not Be Empty ${namespaces_log_dir } /${namespace }
26
+ Directory Should Not Be Empty ${namespaces_log_dir } /${namespace } /pods
27
+ ${log_files } = Run find ${namespaces_log_dir } /${namespace } /pods -type f -name "*.log"
28
+ Should Not Be Equal ${log_files } ${EMPTY }
29
29
30
30
Cleanup must-gather Logs
31
31
[Documentation] Deletes the folder with the must-gather logs
32
- Remove Directory ${must-gather-dir } recursive=True
32
+ Run Keyword If " ${ must_gather_dir } " != " ${ EMPTY } " Remove Directory ${must_gather_dir } recursive=True
0 commit comments