-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from softdevteam/resume-mode
Resume and reboot modes
- Loading branch information
Showing
21 changed files
with
1,297 additions
and
360 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[run] | ||
branch = True | ||
omit = krun/tests/* | ||
|
||
[report] | ||
exclude_lines = | ||
pragma: no cover | ||
def __repr__ | ||
raise NotImplementedError | ||
if __name__ == .__main__.: | ||
# ignore abstract methods/properties mocked with pass | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.coverage | ||
examples/*.log | ||
examples/*.json | ||
examples/*.bz2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
language: python | ||
|
||
python: | ||
- "2.6" | ||
- "2.7" | ||
|
||
script: py.test | ||
install: | ||
- pip install cffi | ||
- pip install pytest-cov | ||
|
||
script: py.test --cov-report term --cov=krun krun |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh -e | ||
# | ||
# /etc/rc.local | ||
# | ||
# This script is executed at the end of each multiuser runlevel. | ||
# This means that once Krun has rebooted the machine, you will not | ||
# see a login prompt until all benchmarks have finished. | ||
# | ||
# Verify this script by running: | ||
# sudo service rc.local start | ||
# | ||
|
||
# Re-direct STDOUT and STDERR to a log file. | ||
exec 2>>/var/log/rc.local.log | ||
exec 1>&2 | ||
|
||
# Print commands as they are executed. | ||
set -x | ||
|
||
cd /home/krun/krun/examples | ||
PYTHONPATH=../ python ../krun.py --resume --reboot --started-by-init --debug=INFO example.krun | ||
|
||
# rc.local must always "exit 0" on success or any other value on error. | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.