From 41bfb79d1b6542f079cacb3a7b3a207d3b12a6ce Mon Sep 17 00:00:00 2001 From: cmoussa1 Date: Tue, 19 Sep 2023 14:30:47 -0700 Subject: [PATCH] t1020: convert spaces to tabs Problem: t1020-mf-priority-issue262.t uses spaces instead of tabs, which is inconsistent with the rest of the sharness tests in flux-accounting. Convert the spaces to tabs in this test file. --- t/t1020-mf-priority-issue262.t | 102 ++++++++++++++++----------------- 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/t/t1020-mf-priority-issue262.t b/t/t1020-mf-priority-issue262.t index 26f1993b..901cbbd5 100755 --- a/t/t1020-mf-priority-issue262.t +++ b/t/t1020-mf-priority-issue262.t @@ -21,102 +21,102 @@ test_expect_success 'allow guest access to testexec' ' EOF ' test_expect_success 'create flux-accounting DB' ' - flux account -p $(pwd)/FluxAccountingTest.db create-db + flux account -p $(pwd)/FluxAccountingTest.db create-db ' test_expect_success 'start flux-accounting service' ' - flux account-service -p ${DB_PATH} -t + flux account-service -p ${DB_PATH} -t ' test_expect_success 'load multi-factor priority plugin' ' - flux jobtap load -r .priority-default ${MULTI_FACTOR_PRIORITY} + flux jobtap load -r .priority-default ${MULTI_FACTOR_PRIORITY} ' test_expect_success 'check that mf_priority plugin is loaded' ' - flux jobtap list | grep mf_priority + flux jobtap list | grep mf_priority ' test_expect_success 'add some banks to the DB' ' - flux account add-bank root 1 && - flux account add-bank --parent-bank=root account1 1 && - flux account add-bank --parent-bank=root account2 1 && - flux account add-bank --parent-bank=root account3 1 + flux account add-bank root 1 && + flux account add-bank --parent-bank=root account1 1 && + flux account add-bank --parent-bank=root account2 1 && + flux account add-bank --parent-bank=root account3 1 ' test_expect_success 'add a user with two different banks to the DB' ' - flux account add-user --username=user1001 --userid=1001 --bank=account1 --max-running-jobs=5 --max-active-jobs=10 && - flux account add-user --username=user1001 --userid=1001 --bank=account2 + flux account add-user --username=user1001 --userid=1001 --bank=account1 --max-running-jobs=5 --max-active-jobs=10 && + flux account add-user --username=user1001 --userid=1001 --bank=account2 ' test_expect_success 'send flux-accounting DB information to the plugin' ' - flux account-priority-update -p $(pwd)/FluxAccountingTest.db + flux account-priority-update -p $(pwd)/FluxAccountingTest.db ' test_expect_success 'submit a sleep 180 job and ensure it is running' ' - jobid1=$(flux python ${SUBMIT_AS} 1001 sleep 180) && - flux job wait-event -vt 60 $jobid1 alloc && - flux job info $jobid1 eventlog > eventlog.out && - grep "alloc" eventlog.out + jobid1=$(flux python ${SUBMIT_AS} 1001 sleep 180) && + flux job wait-event -vt 60 $jobid1 alloc && + flux job info $jobid1 eventlog > eventlog.out && + grep "alloc" eventlog.out ' test_expect_success 'stop scheduler from allocating resources to jobs' ' - flux queue stop + flux queue stop ' test_expect_success 'submit 2 more sleep 180 jobs; ensure both are in SCHED state' ' - jobid2=$(flux python ${SUBMIT_AS} 1001 sleep 180) && - jobid3=$(flux python ${SUBMIT_AS} 1001 sleep 180) && - flux job wait-event -vt 60 $jobid2 priority && - flux job info $jobid2 eventlog > eventlog.out && - grep "priority" eventlog.out && - flux job wait-event -vt 60 $jobid3 priority && - flux job info $jobid3 eventlog > eventlog.out && - grep "priority" eventlog.out + jobid2=$(flux python ${SUBMIT_AS} 1001 sleep 180) && + jobid3=$(flux python ${SUBMIT_AS} 1001 sleep 180) && + flux job wait-event -vt 60 $jobid2 priority && + flux job info $jobid2 eventlog > eventlog.out && + grep "priority" eventlog.out && + flux job wait-event -vt 60 $jobid3 priority && + flux job info $jobid3 eventlog > eventlog.out && + grep "priority" eventlog.out ' test_expect_success 'ensure current running and active jobs are correct: 1 running, 3 active' ' - flux jobtap query mf_priority.so > query_1.json && - test_debug "jq -S . query_1.json && + test_debug "jq -S . query_2.json && - test_debug "jq -S . query_2.json && + test_debug "jq -S . query_3.json && - test_debug "jq -S . query_3.json && + test_debug "jq -S . query_4.json && - test_debug "jq -S . query_4.json && + test_debug "jq -S . query_5.json && - test_debug "jq -S . query_5.json && + test_debug "jq -S .