Add debug helper script

I'm not sure if others will find this useful, but I use this
script to run pieces of devstack while trying to write/debug
things. It saves me a lot of time being able to get to some
project-lib function without a full clean/re-stack.
Figured I'd share in case it's worth putting into the tree.
Change-Id: I9a92fa71d34f50c2f5ba7d11c1a45301bd4478bf
This commit is contained in:
Dan Smith
2021年01月12日 14:04:38 -08:00
parent e2f574fb90
commit edee6dc341

24
tools/debug_function.sh Executable file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
# This is a small helper to speed development and debug with devstack.
# It is intended to help you run a single function in a project module
# without having to re-stack.
#
# For example, to run the just start_glance function, do this:
#
# ./tools/debug_function.sh glance start_glance
if [ ! -f "lib/1ドル" ]; then
echo "Usage: 0ドル [project] [function] [function...]"
fi
source stackrc
source lib/1ドル
shift
set -x
while [ "1ドル" ]; do
echo ==== Running 1ドル ====
1ドル
echo ==== Done with 1ドル ====
shift
done
Reference in New Issue
openstack/devstack
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.