mirror of
https://github.com/schoebel/mars
synced 2025-02-17 20:47:16 +00:00
test_suite: renaming
This commit is contained in:
parent
f46383e0af
commit
5857f7b148
@ -49,7 +49,7 @@ main_set_globals_depending_on_main_host_list
|
||||
|
||||
## errorcode to prevent lib_exit from removing lock files
|
||||
## (main_lock_file_list)
|
||||
main_prevent_remove_lock_files_code=42
|
||||
main_prevent_remove_lock_files_exit_code=42
|
||||
|
||||
## stack level from which the callstack should be printed in function
|
||||
## lib_vmsg
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright 2010-2012 Thomas Schoebel-Theuer / 1&1 Internet AG
|
||||
# Copyright 2010-2014 Thomas Schoebel-Theuer / 1&1 Internet AG
|
||||
#
|
||||
# Email: tst@1und1.de
|
||||
#
|
||||
@ -60,7 +60,7 @@ function lib_exit
|
||||
if [ $rc -ne 0 -a -z "$lib_exit_recursion" ]; then
|
||||
lib_callstack >&2
|
||||
fi
|
||||
if [ $rc -ne $main_prevent_remove_lock_files_code ]; then
|
||||
if [ $rc -ne $main_prevent_remove_lock_files_exit_code ]; then
|
||||
release_host_locks
|
||||
fi
|
||||
# to avoid recursion
|
||||
|
@ -36,7 +36,7 @@ function set_host_locks
|
||||
fi
|
||||
if [ -f $lock_file ]; then
|
||||
echo "Failure lockfile $lock_file for host $host exists!" >&2
|
||||
lib_exit $main_prevent_remove_lock_files_code
|
||||
lib_exit $main_prevent_remove_lock_files_exit_code
|
||||
fi
|
||||
date > $lock_file || lib_exit 1
|
||||
lib_vmsg " created lockfile $lock_file on $host"
|
||||
|
Loading…
Reference in New Issue
Block a user