Skip to content

Commit 0a79256

Browse files
author
Hatim Chahout
committed
Added mock squeue function to testing setup. #66
1 parent efa66d8 commit 0a79256

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/run_test_setup.bash

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# test_setup.bash
2+
# run_test_setup.bash
33

44
# Exit immediately if a command exits with a non-zero status.
55
set -e
@@ -14,7 +14,8 @@ export -f sbatch
1414
slurm_wait() { :; }
1515
moo_wait() { :; }
1616
sacct() { echo ""; }
17-
export -f slurm_wait moo_wait sacct
17+
squeue() { echo "P$$"; } # Add this new mock function
18+
export -f slurm_wait moo_wait sacct squeue
1819

1920
# Function to set up the temporary environment for a test
2021
function setup_test_env() {

0 commit comments

Comments
 (0)