Skip to content

Instantly share code, notes, and snippets.

View hamiltont's full-sized avatar
🕵️‍♂️
huntin' wabbits

Hamilton Turner hamiltont

🕵️‍♂️
huntin' wabbits
View GitHub Profile
from ast import literal_eval
defaults = dict(config.items("Defaults"))
defaults = { k: literal_eval(v) for k, v in defaults.iteritems()}
Searching for rvm
Installing language: rvm in $FWROOT/installs
++ . /tmp/FrameworkBenchmarks/toolset/setup/linux/languages/rvm.sh
++++ fw_exists rvm.installed
++++ '[' -f rvm.installed ']'
++++ '[' -d rvm.installed ']'
++++ echo 1
+++ RETCODE=1
+++ '[' '!' 1 == 0 ']'
+++ '[' '' '!=' true ']'
#################### Inside benchmarker.__init__
self.__dict__.update(args)
self.list_tests = bool(self.list_tests)
self.list_test_metadata = bool(self.list_test_metadata)
if self.parse == "None":
self.parse = None
# Run the benchmarker in the specified mode
if benchmarker.list_tests == "True":
print "1"
benchmarker.run_list_tests()
elif benchmarker.list_test_metadata == "True":
print "2"
benchmarker.run_list_test_metadata()
elif benchmarker.parse != "None":
print "3"
I was trying to do that same recursive PPID trick using the process id that resulted from __run_test, but the main issue was that a lot of tests start using "sudo nginx ...", which means that nginx immediately calls set session ID and I couldn't find the nginx master process. Your approach of finding the process bound to that port will help you find the nginx master process, and then from there you should be able to use the recursive PPID trick just fine (no one calls set session id twice...)
5:34 PM
aspnet: aspnet-mvc: aspnet-mongodb-raw
aspnet: aspnet-mvc: aspnet-sqlserver-entityframework
aspnet: aspnet-mvc: aspnet-mono-postgresql-entityframework
aspnet: aspnet-mvc: aspnet-postgresql-raw
aspnet: aspnet-mvc: aspnet-mysql-raw
aspnet: aspnet-mvc: default
aspnet: aspnet-mvc: aspnet-mono
aspnet: aspnet-mvc: aspnet-sqlserver-raw
aspnet: aspnet-mvc: aspnet-postgresql-entityframework
aspnet: aspnet-mvc: aspnet-mono-postgresql-raw
----------------------- # tests run ------------------------------------
tests = ["1", "1,", "0.23", # Single numbers
"1,5,7", "1,2,-3", "1,1000,12,1,1,1,1,1", # Lists
"1:2:10", "1:2", "10:-2:0", # Sequences
"1,2:1:5" # Complex
]
----------------------- # results! ------------------------------------
-------------------- install.sh --------------------
#install both java7 and java8
fw_depends java resin maven java8
-------------------- benchmark_config --------------------
# adds a test for java8
#!/usr/bin/env node
var fs = require("fs");
var som = fs.readFileSync("./api.js", "utf-8");
var jsdom = require("jsdom");
function onError(error) {
console.log("ERROR: " + error.code + ": "+ error.message);
}
input {
file {
type => "couchpotato"
path => [ "/logs/couchpotato/CouchPotato.log" ]
start_position => "beginning"
sincedb_path => "/dev/null"
}
}