Skip to content

Commit

Permalink
Update execute_java
Browse files Browse the repository at this point in the history
  • Loading branch information
petrzpav committed Mar 15, 2024
1 parent 4e17c13 commit 0738242
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions execute_java
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
#!/usr/bin/env bash

for file in "${CHANGED_FILES[@]}"; do
declare out
out="$(io_tests "java \${FILE_PATH}" "${file}")"
echo "${out}"
# run main class only iff no iotests (for now)
if [[ -z "${out}" ]] && grep -q "static void main" "${WORKING_DIR}/${file}"; then
java "${WORKING_DIR}/${file}"
fi
java "${WORKING_DIR}/${file}"
done

0 comments on commit 0738242

Please sign in to comment.