Skip to content

Commit 7b9b6e9

Browse files
committed
Changed log filename for sketch compiles when in staging.
Added prefix, to be easier to seperate those log files.
1 parent 8ac68ff commit 7b9b6e9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

codebender_testing/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def jsondump(data):
4343

4444
# Logfile for COMPILE_TESTER compilation results
4545
COMPILE_TESTER_LOGFILE = LOGFILE_PREFIX.format(log_name="cb_compile_tester")
46+
COMPILE_TESTER_LOGFILE_STAGING = LOGFILE_PREFIX.format(log_name="staging_cb_compile_tester")
4647

4748
# Logfile for /libraries compilation results
4849
LIBRARIES_TEST_LOGFILE = LOGFILE_PREFIX.format(log_name="libraries_test")

tests/compile_tester/test_compile_tester_projects.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from codebender_testing.config import COMPILE_TESTER_DIR
22
from codebender_testing.config import COMPILE_TESTER_LOGFILE
3+
from codebender_testing.config import COMPILE_TESTER_LOGFILE_STAGING
34
from codebender_testing.config import COMPILE_TESTER_URL
45
from codebender_testing.config import LIVE_SITE_URL
56
from codebender_testing.config import STAGING_SITE_URL
@@ -46,6 +47,6 @@ def test_compile_local_files(self, tester_login):
4647
'#user_projects tbody a',
4748
iframe=False,
4849
compile_type='sketch',
49-
create_report=True, logfile=COMPILE_TESTER_LOGFILE)
50+
create_report=True, logfile=COMPILE_TESTER_LOGFILE_STAGING)
5051
for name in projects:
5152
self.delete_project(name.replace(" ", "-"))

0 commit comments

Comments
 (0)