Skip to content

Commit 8fa9fae

Browse files
committed
fixed .net test issue for opensuse 16 and sles 16
1 parent 0071278 commit 8fa9fae

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/validate-linux-packages-reuse.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,8 @@ jobs:
609609
run: |
610610
docker exec ${{ steps.container.outputs.name }} sh -c '
611611
# Find and run the self-contained QuicHello executable
612-
EXE=$(find /dotnet -maxdepth 1 -name "QuicHello*" -type f ! -name "*.dll" ! -name "*.pdb" ! -name "*.json" 2>/dev/null | head -1)
612+
# Use ls+grep instead of find negation, which is unreliable on BusyBox (OpenSUSE/SLES)
613+
EXE=$(ls /dotnet/QuicHello* 2>/dev/null | grep -v -e "\.dll$" -e "\.pdb$" -e "\.json$" | head -1)
613614
if [ -z "$EXE" ]; then
614615
echo "ERROR: QuicHello executable not found"
615616
ls -la /dotnet/

0 commit comments

Comments
 (0)