From ca83f782b8bb6ecba0d750849a6b1fc28ec116e2 Mon Sep 17 00:00:00 2001 From: Nick Mitchell Date: Tue, 26 Nov 2024 10:58:51 -0500 Subject: [PATCH] test: simplify dir structure of python-code-code-quality Signed-off-by: Nick Mitchell --- pkg/runtime/needs/install_requirements.go | 1 + .../pail/{src => }/main.py | 0 .../pail/{data => }/requirements.txt | 0 .../test-data/expected/sample_1.parquet.gz | Bin 1630 -> 1526 bytes .../test-data/expected/sample_2.parquet.gz | Bin 1714 -> 1607 bytes tests/tests/python-code-code-quality/post.sh | 4 ++-- 6 files changed, 3 insertions(+), 2 deletions(-) rename tests/tests/python-code-code-quality/pail/{src => }/main.py (100%) rename tests/tests/python-code-code-quality/pail/{data => }/requirements.txt (100%) diff --git a/pkg/runtime/needs/install_requirements.go b/pkg/runtime/needs/install_requirements.go index 5b97df46..d0ed4e8a 100644 --- a/pkg/runtime/needs/install_requirements.go +++ b/pkg/runtime/needs/install_requirements.go @@ -92,6 +92,7 @@ pip3 install %s %s -r %s %s 1>&2`, venvPath, venvPath, verboseFlag, nocache, qui cmd = exec.CommandContext(ctx, "/bin/bash", "-c", cmds) cmd.Dir = filepath.Dir(venvPath) if verbose { + // Stderr so as not to collide with lunchpail pipeline stdout cmd.Stdout = os.Stderr } cmd.Stderr = os.Stderr diff --git a/tests/tests/python-code-code-quality/pail/src/main.py b/tests/tests/python-code-code-quality/pail/main.py similarity index 100% rename from tests/tests/python-code-code-quality/pail/src/main.py rename to tests/tests/python-code-code-quality/pail/main.py diff --git a/tests/tests/python-code-code-quality/pail/data/requirements.txt b/tests/tests/python-code-code-quality/pail/requirements.txt similarity index 100% rename from tests/tests/python-code-code-quality/pail/data/requirements.txt rename to tests/tests/python-code-code-quality/pail/requirements.txt diff --git a/tests/tests/python-code-code-quality/pail/test-data/expected/sample_1.parquet.gz b/tests/tests/python-code-code-quality/pail/test-data/expected/sample_1.parquet.gz index 4e035f063f3fb7f9bcc0b817d474956a2415f4f9..6395b679c5f4feb95eee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--git a/tests/tests/python-code-code-quality/pail/test-data/expected/sample_2.parquet.gz b/tests/tests/python-code-code-quality/pail/test-data/expected/sample_2.parquet.gz index 78aef26c826f605185e18cbba59ee88324728cbe..7c9952029322034a6a09e168fb1f92cbda1b1ec4 100644 GIT binary patch literal 1607 zcmV-N2DtejiwFpD?L}t*19V|?Yc4V_aA9(Bb!Bt_bDODrZ< zGcpQb%%g!26t0bJpg?Rxu#Hr?hLg zWfzs2?z%`Hs8RC|xl|{`< zzB6MKRE6pXulcNh1K@Cy#7~Jk4)kSrUyhV5)lWn5J z_WC$c3hDzzsd$A*&CJ<}Yl_(wI^%vI^V# z2@&RaY@M5Rsw*yM)feeBTbpzSso{011M4_P$iL+$Z6>mYzu8*L?;!rGd}j!|s)x&2^+7t#)&?Dd zxU}y3HXCZe1@ajW%?5TjwcC!$P=AwJUjmpb%*=qz%1eF()qk7bJPey^zq`~bI3WXalC08HN7t$R#Z*UP3sk8&5D&Yr|X5BBBQ;UD_sRWeIQHbq#I69 zgC%H(d&K>mB}S-z_bkyh=srym)j>Px_nq`fH~VKN>-=B61Kehfb)bqHq)<)OrKnmk zI7Oe4^j9Q%>||edw`%>Zsd_D{(=x+cPe}R)l6}_0e$jK0Hr86hVTWs#ZjHp(ee6l^ zMLK?aiN?nPD}6)K-;wM|KYQGNk>1}vVa<L1%0ori<$j{_I! z|Lt{}T0w0sTxP$xe34f`YbnBgt&4CsbQdfWrMKCWp<4~D)D0n+r4HWEh;00mE9b*E z_AHy=)8X?Gv}$iQ$qPhM_mXK%Vs%0rcTAm6yxKHv;Ky_uApIpxJ6I?Ej2=dIS3iiy z?<8)T?<3b!rw@&z+%f5ft`Eaax?36l<503~saLLWAh%g|yiu@0v(>@x4re09WTT9OUY@(A(ioZblt+Qf(qip`P{%Hs}1>F zMwgMW&cmE$lpP~EwR@OK;L?&&DdOm(+h@cRGWR3HTtwzea8E}gC5Zzk2v+aHkzjx31BewboA`0UEzW_t~p9~QZ F008JM6|VpQ literal 1714 z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