Skip to content

Commit 0ccbdd7

Browse files
authored
Fix on command execution (#126)
1 parent 23de09f commit 0ccbdd7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

perf/run_perf_tests.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -494,11 +494,11 @@ def open(self):
494494
erigon_commit = ""
495495
silkrpc_commit = ""
496496
if self.config.test_mode in ("1", "3"):
497-
command = "cd " + self.config.silkworm_dir + " && git rev-parse HEAD 2 /dev/null"
497+
command = "cd " + self.config.silkworm_dir + " && git rev-parse HEAD 2> /dev/null"
498498
silkrpc_commit = os.popen(command).read().replace('\n', '')
499499

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

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

0 commit comments

Comments
 (0)