osc-machete 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/osc/machete/torque_helper.rb +1 -1
- data/lib/osc/machete/version.rb +1 -1
- data/test/fixtures/quick.sh +1 -1
- data/test/test_torque_helper.rb +4 -4
- data/test/test_torque_helper_live.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 278d35cf155df22288ff6461da640b4343ded2b7
|
4
|
+
data.tar.gz: 249a7dbc0bcc024cec9a194393d2824b3a2c5a0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a1d597265cd0156dc6048116ddb0d280708f5b2695e0b0c6239b29b6d8213c74f6868988731e1b0a83e9bba581116072e31ff2aaedf3fa0952bf9e27bedafd2
|
7
|
+
data.tar.gz: b17d96c2572a8c15bcea6fa0360c710ee3777b4568f676c4e127c6d3cebaea0d5966fec445bc1ecf6308f1efe9aa6ecc4c2abb09495e831edf3b649aa0cfd93a
|
data/CHANGELOG.md
CHANGED
@@ -13,7 +13,7 @@ class OSC::Machete::TorqueHelper
|
|
13
13
|
HOSTS = {
|
14
14
|
'oakley' => 'oak-batch.osc.edu',
|
15
15
|
'ruby' => 'ruby-batch.osc.edu',
|
16
|
-
'quick' => 'quick-batch.osc.edu',
|
16
|
+
'quick' => 'quick-batch.ten.osc.edu',
|
17
17
|
'owens' => 'owens-batch.ten.osc.edu',
|
18
18
|
:default => 'oak-batch.osc.edu'
|
19
19
|
}
|
data/lib/osc/machete/version.rb
CHANGED
data/test/fixtures/quick.sh
CHANGED
data/test/test_torque_helper.rb
CHANGED
@@ -106,7 +106,7 @@ class TestTorqueHelper < Minitest::Test
|
|
106
106
|
# Test that qdel works for quick batch
|
107
107
|
def test_qdel_quick
|
108
108
|
PBS::Batch.any_instance.stubs(:delete_job).returns(true)
|
109
|
-
assert_equal true, @shell.qdel("123.quick-batch.osc.edu")
|
109
|
+
assert_equal true, @shell.qdel("123.quick-batch.ten.osc.edu")
|
110
110
|
PBS::Batch.any_instance.unstub(:delete_job)
|
111
111
|
end
|
112
112
|
|
@@ -120,18 +120,18 @@ class TestTorqueHelper < Minitest::Test
|
|
120
120
|
# Test that qdel throws exception on PBS exception
|
121
121
|
def test_qdel_throws_exception
|
122
122
|
PBS::Batch.any_instance.stubs(:delete_job).raises(PBS::Error)
|
123
|
-
assert_raises(PBS::Error) { @shell.qdel("123.quick-batch.osc.edu") }
|
123
|
+
assert_raises(PBS::Error) { @shell.qdel("123.quick-batch.ten.osc.edu") }
|
124
124
|
PBS::Batch.any_instance.unstub(:delete_job)
|
125
125
|
|
126
126
|
PBS::Batch.any_instance.stubs(:delete_job).raises(PBS::SystemError)
|
127
|
-
assert_raises(PBS::SystemError) { @shell.qdel("123.quick-batch.osc.edu") }
|
127
|
+
assert_raises(PBS::SystemError) { @shell.qdel("123.quick-batch.ten.osc.edu") }
|
128
128
|
PBS::Batch.any_instance.unstub(:delete_job)
|
129
129
|
end
|
130
130
|
|
131
131
|
# Test that qdel doesn't throw exception if Unknown Job Id exception
|
132
132
|
def test_qdel_doesnt_throw_exception_on_unknown_job_id
|
133
133
|
PBS::Batch.any_instance.stubs(:delete_job).raises(PBS::UnkjobidError)
|
134
|
-
@shell.qdel("123.quick-batch.osc.edu")
|
134
|
+
@shell.qdel("123.quick-batch.ten.osc.edu")
|
135
135
|
PBS::Batch.any_instance.unstub(:delete_job)
|
136
136
|
end
|
137
137
|
|
@@ -157,7 +157,7 @@ class TestTorqueHelperLive < Minitest::Test
|
|
157
157
|
if Socket.gethostname == @submit_host
|
158
158
|
# Submit a small job.
|
159
159
|
live_job = torque.qsub(@script_quick, host: 'quick')
|
160
|
-
assert_match(/\d+.quick-batch.osc.edu/, live_job)
|
160
|
+
assert_match(/\d+.quick-batch.ten.osc.edu/, live_job)
|
161
161
|
|
162
162
|
# Qstat it to make sure it's queued.
|
163
163
|
live_status = torque.qstat(live_job)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: osc-machete
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Franz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
154
|
version: '0'
|
155
155
|
requirements: []
|
156
156
|
rubyforge_project:
|
157
|
-
rubygems_version: 2.4.
|
157
|
+
rubygems_version: 2.4.5
|
158
158
|
signing_key:
|
159
159
|
specification_version: 4
|
160
160
|
summary: Common interface for working with HPC batch jobs (currently OSC specific)
|
@@ -175,3 +175,4 @@ test_files:
|
|
175
175
|
- test/test_status.rb
|
176
176
|
- test/test_torque_helper.rb
|
177
177
|
- test/test_torque_helper_live.rb
|
178
|
+
has_rdoc:
|