Skip to content

Commit 4539f6c

Browse files
SersemPecatzanko-matev
authored andcommitted
chore: Clean up dead code
1 parent 1b278fe commit 4539f6c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ci/test/python-recorder-smoke.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@ echo '##########################################################################
99
echo "Building Codetracer CLI for smoke test"
1010
echo '###############################################################################'
1111

12-
just build-once
12+
nix develop .#devShells.x86_64-linux.default --command ./ci/build/dev.sh
1313

14-
# ./ci/build/dev.sh
15-
16-
CT_BIN="${ROOT_DIR}/src/build-debug/bin/ct"
14+
CT_BIN="${ROOT_DIR}/src/bin/ct"
1715
if [[ ! -x "${CT_BIN}" ]]; then
1816
echo "error: ${CT_BIN} not found after build"
1917
exit 1
@@ -59,6 +57,9 @@ echo '##########################################################################
5957
TRACE_PROGRAM="${ROOT_DIR}/examples/python_script.py"
6058
export TRACE_DIR
6159

60+
CODETRACER_CT_PATHS=$(pwd)/ct_paths.json
61+
export CODETRACER_CT_PATHS
62+
6263
"${CT_BIN}" record -o="${TRACE_DIR}" "${TRACE_PROGRAM}"
6364

6465
if [[ ! -f "${TRACE_DIR}/trace.json" ]]; then
@@ -82,7 +83,6 @@ metadata = json.loads((trace_dir / "trace_metadata.json").read_text(encoding="ut
8283
recorder = metadata.get("recorder", {})
8384
assert recorder.get("name") == "codetracer_python_recorder", recorder
8485
assert recorder.get("target_script"), "missing target_script in recorder metadata"
85-
# assert recorder.get("with_diff") is False, "expected with_diff False by default"
8686
PY
8787

8888
echo '###############################################################################'
@@ -136,7 +136,7 @@ if [[ ${INTERP_STATUS} -eq 0 ]]; then
136136
exit 1
137137
fi
138138

139-
if ! grep -q "Python interpreter not found" <<<"${MISSING_INTERP_OUTPUT}"; then
139+
if ! grep -q "Python module \`codetracer_python_recorder\` is not installed for interpreter" <<<"${MISSING_INTERP_OUTPUT}"; then
140140
echo "error: missing interpreter output did not mention missing interpreter"
141141
echo "${MISSING_INTERP_OUTPUT}"
142142
exit 1

0 commit comments

Comments
 (0)