-
Notifications
You must be signed in to change notification settings - Fork 36
Debug report #361
base: master
Are you sure you want to change the base?
Debug report #361
Conversation
if [ "$PNAME" == "null" ]; | ||
echo "Please set a name in config.json" | ||
exit 1 | ||
fi | ||
export PNAME |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does this line do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Meaning what is PNAME
usde for? It's passed to the setup script, which decides whether to create a project reports dir based on its presence.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean why do we need to export PNAME
if it's already set? I'm probably just missing some bash knowledge...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's to make it available to child processes. Now we passi it explicitly to setup-ci-project
, so it's possible we could remove it.
libexec/klab-prove-all
Outdated
if [ "$PNAME" == "null" ]; | ||
echo "Please set a name in config.json" | ||
exit 1 | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we also need to do smth similar for "$KLAB_REPORT_DIR"
?
Stop branching on so many variables existing.
Let's simplify the execution flow.
For better greppability.
11d9669
to
4603866
Compare
For visibility.