Skip to content

Commit

Permalink
tools/lisa-version: Make lisa-version work regardless of current work…
Browse files Browse the repository at this point in the history
…ing directory

FIX

Make lisa-version output independent on where it is ran from.
  • Loading branch information
douglas-raillard-arm committed Oct 25, 2024
1 parent 9c349c3 commit f42ef29
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/lisa-version
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@
# limitations under the License.
#

cd "$LISA_HOME";
cat <<EOF
LISA version $(python -c 'import lisa; print(lisa.__version__)'):
$LISA_HOME
version token: $(python -c 'import lisa.version as v; print(v.VERSION_TOKEN)')
branch: $(git -C "$LISA_HOME" describe --all)
commit: $(git -C "$LISA_HOME" rev-parse --short=11 HEAD)
branch: $(git describe --all)
commit: $(git rev-parse --short=11 HEAD)
$($LISA_PYTHON --version)
Expand Down

0 comments on commit f42ef29

Please sign in to comment.