Skip to content

Commit e10ba9f

Browse files
author
Hatim Chahout
committed
Amended sed function in test setup. #66
1 parent b2393ca commit e10ba9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/run_test_setup.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function setup_test_env() {
1919
cp ./run_proc.bash run_proc_orig.bash
2020

2121
# Sanitize the copied script by removing function definitions and save the result.
22-
sed '/moo_wait() {/,/}/d; /slurm_wait() {/,/}/d; /retrieve_data() {/,/}/d; /run_tool() {/,/}/d' "run_proc_orig.bash" > "run_proc.bash"
22+
sed '/moo_wait() {/,/^}/d; /slurm_wait() {/,/^}/d; /retrieve_data() {/,/^}/d; /run_tool() {/,/^}/d' "run_proc_orig.bash" > "run_proc.bash"
2323

2424
echo "Contents of run_proc.bash:"
2525
cat run_proc.bash

0 commit comments

Comments
 (0)