Skip to content

Commit

Permalink
Fix on command execution (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
lupin012 authored Apr 6, 2024
1 parent 23de09f commit 0ccbdd7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions perf/run_perf_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,11 +494,11 @@ def open(self):
erigon_commit = ""
silkrpc_commit = ""
if self.config.test_mode in ("1", "3"):
command = "cd " + self.config.silkworm_dir + " && git rev-parse HEAD 2 /dev/null"
command = "cd " + self.config.silkworm_dir + " && git rev-parse HEAD 2> /dev/null"
silkrpc_commit = os.popen(command).read().replace('\n', '')

if self.config.test_mode in ("2", "3"):
command = "cd " + self.config.erigon_dir + " && git rev-parse HEAD 2 /dev/null"
command = "cd " + self.config.erigon_dir + " && git rev-parse HEAD 2> /dev/null"
erigon_commit = os.popen(command).read().replace('\n', '')

self.write_test_header(model[1], bogomips, kern_vers, checksum[0], gcc_vers[0], go_vers, silkrpc_commit, erigon_commit)
Expand All @@ -519,6 +519,7 @@ def write_test_header_on_json(self, model, bogomips, kern_vers, checksum, gcc_ve
'erigonCommit': erigon_commit.lstrip().rstrip()
},
"configuration": {
"testingDaemon": self.config.testing_daemon,
"testingApi": self.config.test_type,
"testSequence": self.config.test_sequence,
"testRepetions": self.config.repetitions,
Expand Down

0 comments on commit 0ccbdd7

Please sign in to comment.