Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
660c6e0d
Commit
660c6e0d
authored
4 years ago
by
Scott Jackson
Committed by
Albert Gil
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Testsuite - Fix temporarily database dump for test12.3 (by jenkins)
This is a improvement and fix of commit
5710073a
. Bug 9681
parent
4b5a6663
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
testsuite/expect/inc12.3.1
+1
-20
1 addition, 20 deletions
testsuite/expect/inc12.3.1
testsuite/expect/test12.3
+13
-0
13 additions, 0 deletions
testsuite/expect/test12.3
with
14 additions
and
20 deletions
testsuite/expect/inc12.3.1
+
1
−
20
View file @
660c6e0d
...
...
@@ -30,28 +30,9 @@ source ./globals_accounting
proc inc12_3_1 {job_id_1 job_id_2 job_name_1 job_name_2 test_acct} {
global sacct
# TODO: Temporary variables to debug bug 9681 (remove once fixed)
set username [get_my_user_name]
set hostname [string trimright [run_command_output "hostname -s"]]
log_info "Search for job ID $job_id_1 having name $job_name_1"
set output [run_command_output -fail "$sacct -A '$test_acct' --name=$job_name_1 -X -P -o jobid -v -v"]
# TODO: Temporarily breakup subtest to debug bug 9681 (restore once fixed)
#subtest [regexp -line "^$job_id_1$" $output] "sacct should show job $job_id_1 as having name $job_name_1"
if [regexp -line "^$job_id_1$" $output] {
subpass "sacct should show job $job_id_1 as having name $job_name_1"
} else {
if {$hostname eq "knl2" && $username eq "jenkins"} {
global slurm_dir
set dbd_dict [get_config -dbd]
set database_user [dict get $dbd_dict "StorageUser"]
set database_host [dict get $dbd_dict "StorageHost"]
set database_port [dict get $dbd_dict "StoragePort"]
set database_name [dict get $dbd_dict "StorageLoc"]
run_command "mysqldump -u $database_user -h $database_host -P $database_port $database_name > $slurm_dir/log/slurmdb.sql"
}
subfail "sacct should show job $job_id_1 as having name $job_name_1"
}
subtest [regexp -line "^$job_id_1$" $output] "sacct should show job $job_id_1 as having name $job_name_1"
subtest {![regexp -line "^$job_id_2$" $output]} "sacct should not show job $job_id_2 as having name $job_name_1"
log_info "Search for job ID $job_id_2 having name $job_name_2"
...
...
This diff is collapsed.
Click to expand it.
testsuite/expect/test12.3
+
13
−
0
View file @
660c6e0d
...
...
@@ -72,6 +72,19 @@ save_conf $config_dir/slurmdbd.conf
proc cleanup {} {
global sacctmgr test_acct config_dir
# TODO: Temporarily dump database on subtest failure to debug bug 9681 (restore once fixed)
global _subtest_fail_count slurm_dir
set username [get_my_user_name]
set hostname [string trimright [run_command_output "hostname -s"]]
if {$hostname eq "knl2" && $username eq "jenkins" && $_subtest_fail_count > 0} {
set dbd_dict [get_config -dbd]
set database_user [dict get $dbd_dict "StorageUser"]
set database_host [dict get $dbd_dict "StorageHost"]
set database_port [dict get $dbd_dict "StoragePort"]
set database_name [dict get $dbd_dict "StorageLoc"]
run_command "mysqldump -u $database_user -h $database_host -P $database_port $database_name > $slurm_dir/log/slurmdb.sql"
}
run_command "$sacctmgr -i delete account $test_acct"
restore_conf $config_dir/slurmdbd.conf
run_command "$sacctmgr reconfigure"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment