Skip to content

Commit 1122d88

Browse files
authored
Print the version number in the logfile (#66)
1 parent 6c80080 commit 1122d88

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

docs/src/changelog.md

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
#### Modifiers
1313
- `JVMClasspath` is now an alias of `JVMClasspathAppend`. This is backward compatible.
1414

15+
#### Commands
16+
- `runbms` prints out the version number of `running-ng` in log files.
17+
1518
### Deprecated
1619
- Deprecating Python 3.6 support for users. Python 3.6 will NOT be supported once moma machines are upgraded to the latest Ubuntu LTS.
1720

src/running/command/runbms.py

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import yaml
1717
if TYPE_CHECKING:
1818
from running.plugin.runbms import RunbmsPlugin
19+
from running.__version__ import __VERSION__
1920

2021
configuration: Configuration
2122
minheap_multiplier: float
@@ -160,6 +161,7 @@ def get_log_prologue(runtime: Runtime, bm: Benchmark) -> str:
160161
output += "mkdir -p PLOTTY_WORKAROUND; timedrun; "
161162
output += bm.to_string(runtime)
162163
output += "\n"
164+
output += "running-ng v{}\n".format(__VERSION__)
163165
output += system("date") + "\n"
164166
output += system("w") + "\n"
165167
output += system("vmstat 1 2") + "\n"

0 commit comments

Comments
 (0)