Skip to content

Commit

Permalink
Update pre-commit config
Browse files Browse the repository at this point in the history
* Run `pre-commit migrate-config` to change "push" to "pre-push"
* Minor text updates of the run-unit-tests file
  • Loading branch information
linsword13 committed Oct 28, 2024
1 parent 497ed68 commit 24bb3dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
name: short-unit-tests
entry: share/ramble/qa/run-unit-tests
language: system
stages: [push]
stages: [pre-push]

- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
Expand Down
9 changes: 3 additions & 6 deletions share/ramble/qa/run-unit-tests
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#
# Description:
# Runs Spack unit tests.
# Runs Ramble unit tests.
#
# Usage:
# run-unit-tests [test ...]
Expand All @@ -33,11 +33,11 @@ if [ $? != 0 ]; then
ERROR=1
fi

# Move to root directory of Spack
# Move to root directory of Ramble
# Allows script to be run from anywhere
cd "$RAMBLE_ROOT"

# Run spack help to cover command import
# Run ramble help to cover command import
bin/ramble -h
if [ $? != 0 ]; then
ERROR=1
Expand All @@ -47,9 +47,6 @@ if [ $? != 0 ]; then
ERROR=1
fi

# Profile and print top 20 lines for a simple call to spack spec
#ramble -p --lines 20 spec mpileaks%gcc ^elfutils@0.170

#-----------------------------------------------------------
# Run unit tests with code coverage
#-----------------------------------------------------------
Expand Down

0 comments on commit 24bb3dc

Please sign in to comment.