Skip to content

Commit 779a82e

Browse files
committed
Python: CG trace: Minor cleanup in helper.sh
1 parent 4c68943 commit 779a82e

File tree

1 file changed

+5
-0
lines changed
  • python/tools/recorded-call-graph-metrics

1 file changed

+5
-0
lines changed

python/tools/recorded-call-graph-metrics/helper.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ setup() {
8080
python3 -m venv $(venv_dir $project)
8181
source $(venv_dir $project)/bin/activate
8282

83+
cd $(repo_dir $project)
8384
pip install -e "$SCRIPTDIR"
8485

8586
IFS=$'\n'
@@ -106,11 +107,15 @@ trace() {
106107
REPO_DIR=$(repo_dir $project)
107108
cd "$REPO_DIR"
108109

110+
rm -rf $(trace_dir $project)
109111
mkdir -p $(trace_dir $project)
110112

111113
MODULE_COMMAND=$(jq -r ".\"$project\".module_command" $PROJECTS_FILE)
112114

113115
cg-trace --xml $(trace_dir $project)/trace.xml --module $MODULE_COMMAND
116+
117+
# deactivate venv again
118+
deactivate
114119
done
115120
}
116121

0 commit comments

Comments
 (0)